diff --git a/Manage-Multiple-Users.md b/Manage-Multiple-Users.md index cd51893..d6200a2 100644 --- a/Manage-Multiple-Users.md +++ b/Manage-Multiple-Users.md @@ -62,10 +62,12 @@ cli.bind('/tmp/client.sock') # address of the client cli.connect('/var/run/shadowsocks-manager.sock') # address of Shadowsocks manager cli.send(b'ping') -print(cli.recv(1506)) # You'll receive a pong +print(cli.recv(1506)) # You'll receive 'pong' cli.send(b'add: {"server_port":8001, "password":"7cd308cc059"}') +print(cli.recv(1506)) # You'll receive 'ok' cli.send(b'remove: {"server_port":8001}') +print(cli.recv(1506)) # You'll receive 'ok' while True: print(cli.recv(1506)) # when data is transferred on Shadowsocks, you'll receive stat info every 10 seconds