mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-15 06:05:31 +08:00
ssrs ipv6 chacha20 support (#6199)
* Update ssrs config ipv6 support * Update ssrs.lua
This commit is contained in:
parent
2c91a30820
commit
3fedff6615
@ -12,6 +12,8 @@ local n={
|
|||||||
"rc4",
|
"rc4",
|
||||||
"rc4-md5",
|
"rc4-md5",
|
||||||
"rc4-md5-6",
|
"rc4-md5-6",
|
||||||
|
"chacha20",
|
||||||
|
"chacha20-ietf-poly1305",
|
||||||
}
|
}
|
||||||
local s={
|
local s={
|
||||||
"origin",
|
"origin",
|
||||||
|
@ -49,9 +49,10 @@ gen_config_file() {
|
|||||||
cat <<-EOF >$CONFIG_FILE
|
cat <<-EOF >$CONFIG_FILE
|
||||||
{
|
{
|
||||||
"server": "0.0.0.0",
|
"server": "0.0.0.0",
|
||||||
|
"server_ipv6": "::",
|
||||||
"server_port": $(uci_get_by_type server server_port),
|
"server_port": $(uci_get_by_type server server_port),
|
||||||
"local_address":"127.0.0.1",
|
"local_address":"127.0.0.1",
|
||||||
"local_port":1086,
|
"local_port":1086,
|
||||||
"password": "$(uci_get_by_type server password)",
|
"password": "$(uci_get_by_type server password)",
|
||||||
"timeout": $(uci_get_by_type server timeout 60),
|
"timeout": $(uci_get_by_type server timeout 60),
|
||||||
"method": "$(uci_get_by_type server encrypt_method)",
|
"method": "$(uci_get_by_type server encrypt_method)",
|
||||||
@ -92,4 +93,4 @@ stop() {
|
|||||||
-d stop \
|
-d stop \
|
||||||
>/dev/null 2>&1 &
|
>/dev/null 2>&1 &
|
||||||
rm -f $LOG_FILE
|
rm -f $LOG_FILE
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user