File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ def _parse_command(self, data):
140
140
return data , None
141
141
command , config_json = parts
142
142
try :
143
- config = json . loads (config_json )
143
+ config = shell . parse_json_in_str (config_json )
144
144
return command , config
145
145
except Exception as e :
146
146
logging .error (e )
@@ -231,7 +231,7 @@ def run_server():
231
231
232
232
# test add and remove
233
233
time .sleep (1 )
234
- cli .send (b'add: {"server_port":7001, "password":"1234 "}' )
234
+ cli .send (b'add: {"server_port":7001, "password":"asdfadsfasdf "}' )
235
235
time .sleep (1 )
236
236
assert 7001 in manager ._relays
237
237
data , addr = cli .recvfrom (1506 )
@@ -246,7 +246,7 @@ def run_server():
246
246
247
247
# test statistics for TCP
248
248
header = common .pack_addr (b'google.com' ) + struct .pack ('>H' , 80 )
249
- data = encrypt .encrypt_all (b'1234 ' , 'aes-256-cfb' , 1 ,
249
+ data = encrypt .encrypt_all (b'asdfadsfasdf ' , 'aes-256-cfb' , 1 ,
250
250
header + b'GET /\r \n \r \n ' )
251
251
tcp_cli = socket .socket ()
252
252
tcp_cli .connect (('127.0.0.1' , 7001 ))
You can’t perform that action at this time.
0 commit comments