Added check for getpeername since it doesn't exist on esp usocket
Showing
1 changed file
with
3 additions
and
0 deletions
... | @@ -159,6 +159,9 @@ class MudServer(object): | ... | @@ -159,6 +159,9 @@ class MudServer(object): |
159 | self._new_events = [] | 159 | self._new_events = [] |
160 | 160 | ||
161 | def get_remote_ip(self, clid): | 161 | def get_remote_ip(self, clid): |
162 | if 'esp' in sys.platform: | ||
163 | return 'Unknown IP' | ||
164 | else: | ||
162 | cl = self._clients[clid] | 165 | cl = self._clients[clid] |
163 | return cl.socket.getpeername() | 166 | return cl.socket.getpeername() |
164 | 167 | ... | ... |
-
Please register or sign in to post a comment