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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
mudserver.py
mudserver.py
View file @
59adb22
...
...
@@ -159,6 +159,9 @@ class MudServer(object):
self
.
_new_events
=
[]
def
get_remote_ip
(
self
,
clid
):
if
'esp'
in
sys
.
platform
:
return
'Unknown IP'
else
:
cl
=
self
.
_clients
[
clid
]
return
cl
.
socket
.
getpeername
()
...
...
Please
register
or
sign in
to post a comment