59adb22d by Barry

Added check for getpeername since it doesn't exist on esp usocket

1 parent e8845005
...@@ -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
......