Skip to content

Commit

Permalink
Fix cfg_addr error on socket object - copied from abourget#200
Browse files Browse the repository at this point in the history
  • Loading branch information
dn0 committed Oct 10, 2015
1 parent fabec38 commit 717996d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion socketio/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ def __init__(self, *args, **kwargs):
try:
address = args[0].address[0]
except AttributeError:
address = args[0].cfg_addr[0]
try:
address = args[0].cfg_addr[0]
except AttributeError:
address = args[0].getsockname()[0]

policylistener = kwargs.pop('policy_listener', (address, 10843))
self.policy_server = FlashPolicyServer(policylistener)
else:
Expand Down

0 comments on commit 717996d

Please sign in to comment.