Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 96543a4

Browse files
committed
Added support for socket_io_address setting with SocketServer.
1 parent 84374de commit 96543a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tornadio/server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def __init__(self, application,
3939
flash_policy_file = settings.get('flash_policy_file', None)
4040
flash_policy_port = settings.get('flash_policy_port', None)
4141
socket_io_port = settings.get('socket_io_port', 8001)
42+
socket_io_address = settings.get('socket_io_address', '')
4243

4344
io_loop = io_loop or ioloop.IOLoop.instance()
4445

@@ -52,7 +53,7 @@ def __init__(self, application,
5253
logging.info('Starting up tornadio server on port \'%s\'',
5354
socket_io_port)
5455

55-
self.listen(socket_io_port)
56+
self.listen(socket_io_port, socket_io_address)
5657

5758
if flash_policy_file is not None and flash_policy_port is not None:
5859
try:

0 commit comments

Comments
 (0)