mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-09-06 01:41:00 +00:00
Update server.py
This commit is contained in:
parent
6c82005e08
commit
eaca6d94f4
|
@ -156,7 +156,6 @@ def parse_first_data(data):
|
||||||
def conn_string(conn, data, addr):
|
def conn_string(conn, data, addr):
|
||||||
# check is it JSON-RPC 2.0 request
|
# check is it JSON-RPC 2.0 request
|
||||||
if data.find(b'{') == 0:
|
if data.find(b'{') == 0:
|
||||||
print (data)
|
|
||||||
jsondata = json.loads(data.decode(client_encoding))
|
jsondata = json.loads(data.decode(client_encoding))
|
||||||
if jsondata['jsonrpc'] == "2.0" and jsondata['method'] == "relay_accept":
|
if jsondata['jsonrpc'] == "2.0" and jsondata['method'] == "relay_accept":
|
||||||
id = jsondata['id']
|
id = jsondata['id']
|
||||||
|
|
Loading…
Reference in New Issue
Block a user