Skip to content

Commit

Permalink
fix bind payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
n1nj4sec committed Sep 17, 2017
1 parent 589f0fa commit d4c1fbb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion pupy/pupylib/PupyServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,18 @@ def add_client(self, conn):
"native": bool(conn.get_infos("native")),
"sid": conn.get_infos("sid") or '',
}
address=conn._conn._config['connid']
try:
if type(address) is list:
address=address[0]
address=conn._conn._config['connid'].rsplit(':',1)[0]
except:
address=str(address)

client_info.update({
"id": client_id,
"conn" : conn,
"address" : conn._conn._config['connid'].rsplit(':',1)[0],
"address" : address
})

client_info.update(conn.namespace["get_uuid"]())
Expand Down
4 changes: 2 additions & 2 deletions pupy/pupylib/PupyVersion.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-

__author__='Nicolas VERDIER'
__version__='v1.6'
__date__='May 16 2017'
__version__='v1.7-unstable'
__date__='Sep 15 2017'

BANNER="""
_____ _ _ _
Expand Down

0 comments on commit d4c1fbb

Please sign in to comment.