Alignment
This commit is contained in:
parent
21a1e44196
commit
90307d0e97
@ -94,11 +94,9 @@ class GrabberServerFactory(WebSocketServerFactory):
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
|
|
||||||
ports = list(int(p) for p in os.environ.get('GRAB_SITE_PORT', "29000").split(','))
|
ports = list(int(p) for p in os.environ.get('GRAB_SITE_PORT', "29000").split(','))
|
||||||
interface = os.environ.get('GRAB_SITE_INTERFACE', '0.0.0.0')
|
|
||||||
|
|
||||||
factory = GrabberServerFactory()
|
factory = GrabberServerFactory()
|
||||||
|
interface = os.environ.get('GRAB_SITE_INTERFACE', '0.0.0.0')
|
||||||
for port in ports:
|
for port in ports:
|
||||||
coro = loop.create_server(factory, interface, port)
|
coro = loop.create_server(factory, interface, port)
|
||||||
loop.run_until_complete(coro)
|
loop.run_until_complete(coro)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user