diff options
Diffstat (limited to 'meta/lib/oeqa/utils/httpserver.py')
-rw-r--r-- | meta/lib/oeqa/utils/httpserver.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oeqa/utils/httpserver.py b/meta/lib/oeqa/utils/httpserver.py index d4b61547e8..f161a1bddd 100644 --- a/meta/lib/oeqa/utils/httpserver.py +++ b/meta/lib/oeqa/utils/httpserver.py | |||
@@ -15,12 +15,13 @@ class HTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): | |||
15 | 15 | ||
16 | class HTTPService(object): | 16 | class HTTPService(object): |
17 | 17 | ||
18 | def __init__(self, root_dir): | 18 | def __init__(self, root_dir, host=''): |
19 | self.root_dir = root_dir | 19 | self.root_dir = root_dir |
20 | self.host = host | ||
20 | self.port = 0 | 21 | self.port = 0 |
21 | 22 | ||
22 | def start(self): | 23 | def start(self): |
23 | self.server = HTTPServer(('', self.port), HTTPRequestHandler) | 24 | self.server = HTTPServer((self.host, self.port), HTTPRequestHandler) |
24 | if self.port == 0: | 25 | if self.port == 0: |
25 | self.port = self.server.server_port | 26 | self.port = self.server.server_port |
26 | self.process = multiprocessing.Process(target=self.server.server_start, args=[self.root_dir]) | 27 | self.process = multiprocessing.Process(target=self.server.server_start, args=[self.root_dir]) |