Browse Source

feat: builder test of sip003

master
Dnomd343 3 years ago
parent
commit
7e85dec52e
  1. 4
      test.py
  2. 21
      test/Shadowsocks.py

4
test.py

@ -10,8 +10,8 @@ import ProxyChecker as Checker
# print(dir(Tester)) # print(dir(Tester))
# data = Tester.Shadowsocks(1081, 'dnomd343') data = Tester.Shadowsocks(1081, 'dnomd343')
data = Tester.ShadowsocksR(1081, 'dnomd343') # data = Tester.ShadowsocksR(1081, 'dnomd343')
# for field in data: # for field in data:
# print(field['proxyInfo']) # print(field['proxyInfo'])

21
test/Shadowsocks.py

@ -106,4 +106,25 @@ def test(port, password):
'proxyInfo': proxyInfo, 'proxyInfo': proxyInfo,
'serverCommand': serverCommand 'serverCommand': serverCommand
}) })
testList.append({
'caption': 'Shadowsocks SIP003 plugin',
'proxyInfo': {
'type': 'ss',
'server': '127.0.0.1',
'port': int(port),
'password': password,
'method': 'aes-256-ctr',
'plugin': 'obfs-local',
'pluginArg': 'obfs=http;obfs-host=www.bing.com',
},
'serverCommand': [
'ss-bootstrap-server',
'--shadowsocks', 'ss-python-server',
'-p', str(port),
'-k', password,
'-m', 'aes-256-ctr',
'--plugin', 'obfs-server',
'--plugin-opts', 'obfs=http'
]
})
return testList return testList

Loading…
Cancel
Save