This commit is contained in:
wingyiu 2015-08-22 15:05:12 +08:00
parent 938bba32a4
commit eeac613cfb
83 changed files with 8428 additions and 1 deletions

18
tests/gen_multiple_passwd.py Executable file
View file

@ -0,0 +1,18 @@
#!/usr/bin/python
import json
with open('server-multi-passwd-performance.json', 'wb') as f:
r = {
'server': '127.0.0.1',
'local_port': 1081,
'timeout': 60,
'method': 'aes-256-cfb'
}
ports = {}
for i in range(7000, 9000):
ports[str(i)] = 'aes_password'
r['port_password'] = ports
print(r)
f.write(json.dumps(r, indent=4).encode('utf-8'))