Merge pull request #219 from kerrickstaley/localhost

Bind mediaserver on 127.0.0.1 instead of localhost
This commit is contained in:
Damien Elmes 2017-12-26 12:42:35 +10:00 committed by GitHub
commit ab46a4530c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ class MediaServer(threading.Thread):
_ready = threading.Event()
def run(self):
self.server = ThreadedHTTPServer(("localhost", 0), RequestHandler)
self.server = ThreadedHTTPServer(("127.0.0.1", 0), RequestHandler)
self._ready.set()
self.server.serve_forever()