2.8.2
This commit is contained in:
parent
938bba32a4
commit
eeac613cfb
83 changed files with 8428 additions and 1 deletions
17
tests/graceful_cli.py
Executable file
17
tests/graceful_cli.py
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import socks
|
||||
import time
|
||||
|
||||
|
||||
SERVER_IP = '127.0.0.1'
|
||||
SERVER_PORT = 8001
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
s = socks.socksocket()
|
||||
s.set_proxy(socks.SOCKS5, SERVER_IP, 1081)
|
||||
s.connect((SERVER_IP, SERVER_PORT))
|
||||
s.send(b'test')
|
||||
time.sleep(30)
|
||||
s.close()
|
Loading…
Add table
Add a link
Reference in a new issue