From 7e85dec52e26ee3a0130c1c8ebecc18fdadae74c Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Wed, 9 Feb 2022 20:08:28 +0800 Subject: [PATCH] feat: builder test of sip003 --- test.py | 4 ++-- test/Shadowsocks.py | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/test.py b/test.py index ff8bc1b..595d280 100644 --- a/test.py +++ b/test.py @@ -10,8 +10,8 @@ import ProxyChecker as Checker # print(dir(Tester)) -# data = Tester.Shadowsocks(1081, 'dnomd343') -data = Tester.ShadowsocksR(1081, 'dnomd343') +data = Tester.Shadowsocks(1081, 'dnomd343') +# data = Tester.ShadowsocksR(1081, 'dnomd343') # for field in data: # print(field['proxyInfo']) diff --git a/test/Shadowsocks.py b/test/Shadowsocks.py index 322e162..ca79e4d 100644 --- a/test/Shadowsocks.py +++ b/test/Shadowsocks.py @@ -106,4 +106,25 @@ def test(port, password): 'proxyInfo': proxyInfo, '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