From 10e725ec6c5dab4a60b90eec6d77d4a900213093 Mon Sep 17 00:00:00 2001 From: taowazi007 Date: Mon, 18 Jan 2021 15:53:45 +0800 Subject: [PATCH] luci-app-ssrserver-python: add support for IPv6 and chacha20 cipher Signed-off-by: CN_SZTL --- .../lean/luci-app-ssrserver-python/luasrc/model/cbi/ssrs.lua | 1 + package/lean/luci-app-ssrserver-python/root/etc/init.d/ssrs | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package/lean/luci-app-ssrserver-python/luasrc/model/cbi/ssrs.lua b/package/lean/luci-app-ssrserver-python/luasrc/model/cbi/ssrs.lua index 889aca8a68..56e0ca0269 100644 --- a/package/lean/luci-app-ssrserver-python/luasrc/model/cbi/ssrs.lua +++ b/package/lean/luci-app-ssrserver-python/luasrc/model/cbi/ssrs.lua @@ -12,6 +12,7 @@ local n={ "rc4", "rc4-md5", "rc4-md5-6", +"chacha20", } local s={ "origin", diff --git a/package/lean/luci-app-ssrserver-python/root/etc/init.d/ssrs b/package/lean/luci-app-ssrserver-python/root/etc/init.d/ssrs index a6506e3954..1a9148e225 100755 --- a/package/lean/luci-app-ssrserver-python/root/etc/init.d/ssrs +++ b/package/lean/luci-app-ssrserver-python/root/etc/init.d/ssrs @@ -49,9 +49,10 @@ gen_config_file() { cat <<-EOF >$CONFIG_FILE { "server": "0.0.0.0", + "server_ipv6": "::", "server_port": $(uci_get_by_type server server_port), - "local_address":"127.0.0.1", - "local_port":1086, + "local_address":"127.0.0.1", + "local_port":1086, "password": "$(uci_get_by_type server password)", "timeout": $(uci_get_by_type server timeout 60), "method": "$(uci_get_by_type server encrypt_method)",