Skip to content

Commit

Permalink
Add alterID
Browse files Browse the repository at this point in the history
  • Loading branch information
deepjia committed Jul 28, 2018
1 parent a5a34eb commit 9edbfb2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10
🇨🇳Eg.Proxy(glider)(ss)ExampleProxy = glider, ss, AEAD_AES_256_GCM:password@server_ip, 12345
# Other extensions need prerequisites:
🇨🇳️Eg.Proxy(ss-libev)(ss)ExampleProxy = ss-libev, server_ip, 12345, chacha20-ietf-poly1305, password
🇨🇳Eg.Proxy(v2ray)(vmess-tls-ws)ExampleProxy = v2ray, example.org, 443, /ws, uuid
🇨🇳Eg.Proxy(v2ray)(vmess-tls-ws)ExampleProxy = v2ray, example.org, 443, /ws, ID, alterID

[Bypass]
# Same as proxy, gost and glider are preferred:
Expand Down
5 changes: 2 additions & 3 deletions extension/v2ray/extension.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"bin": "v2ray",
"args": "-config '{{ TempDir }}/v2ray.json'",
"keys": ["ServerAddress", "ServerPort", "WSPath", "ServicePassword"],
"keys": ["ServerAddress", "ServerPort", "WSPath", "ServiceID", "AlterID"],
"exitargs":"",
"http": false,
"socks5": true,
Expand All @@ -10,7 +10,6 @@
"ServerAddress": "127.0.0.1",
"ServerPort": "443",
"WSPath": "/ws",
"Timeout": "60",
"TFO": "true"
"AlterID": "64"
}
}
4 changes: 2 additions & 2 deletions extension/v2ray/template.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"port" : {{ ServerPort }},
"users" : [
{
"id" : "{{ ServicePassword }}",
"alterId" : 64,
"id" : "{{ ServiceID }}",
"alterId" : {{ AlterID }},
"security" : "auto",
"level" : 0
}
Expand Down
2 changes: 1 addition & 1 deletion profile/profile.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10
🇯🇵Eg.ProxyAndBypass(gost)(ss)ExampleProxy = gost, ss, chacha20:password@server_ip, 12345, gost.txt
🇨🇳Eg.ProxyAndBypass(glider)(ss)ExampleProxyAndBypass = glider, ss, AEAD_CHACHA20_POLY1305:password@server_ip, 12345, glider.txt
🇨🇳️Eg.Proxy(ss-libev)(ss)ExampleProxy = ss-libev, server_ip, 12345, chacha20-ietf-poly1305, password
🇨🇳Eg.Proxy(v2ray)(vmess-tls-ws)ExampleProxy = v2ray, example.org, 443, /ws, uuid
🇨🇳Eg.Proxy(v2ray)(vmess-tls-ws)ExampleProxy = v2ray, example.org, 443, /ws, ID, alterID
🚄Eg.Bypass(privoxy)(auto)PrivoxyBypass = privoxy, , 127.0.0.1, , privoxy.txt
🛠️Eg.Capture(glider)(auto)mitmweb = mitmweb, 8081

0 comments on commit 9edbfb2

Please sign in to comment.