Updated Manage Multiple Users (markdown)
parent
83e3c0fd1c
commit
9864adf490
1 changed files with 3 additions and 1 deletions
|
@ -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.connect('/var/run/shadowsocks-manager.sock') # address of Shadowsocks manager
|
||||||
|
|
||||||
cli.send(b'ping')
|
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"}')
|
cli.send(b'add: {"server_port":8001, "password":"7cd308cc059"}')
|
||||||
|
print(cli.recv(1506)) # You'll receive 'ok'
|
||||||
cli.send(b'remove: {"server_port":8001}')
|
cli.send(b'remove: {"server_port":8001}')
|
||||||
|
print(cli.recv(1506)) # You'll receive 'ok'
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
print(cli.recv(1506)) # when data is transferred on Shadowsocks, you'll receive stat info every 10 seconds
|
print(cli.recv(1506)) # when data is transferred on Shadowsocks, you'll receive stat info every 10 seconds
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue