Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Barry
/
esp8266-Mud
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
59adb22d
authored
2018-05-20 15:33:30 -0700
by
Barry
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Added check for getpeername since it doesn't exist on esp usocket
1 parent
e8845005
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
mudserver.py
mudserver.py
View file @
59adb22
...
...
@@ -159,8 +159,11 @@ class MudServer(object):
self
.
_new_events
=
[]
def
get_remote_ip
(
self
,
clid
):
cl
=
self
.
_clients
[
clid
]
return
cl
.
socket
.
getpeername
()
if
'esp'
in
sys
.
platform
:
return
'Unknown IP'
else
:
cl
=
self
.
_clients
[
clid
]
return
cl
.
socket
.
getpeername
()
def
disconnect_player
(
self
,
clid
):
cl
=
self
.
_clients
[
clid
]
...
...
Please
register
or
sign in
to post a comment