From dcdfac62e6b94c85a5a08517eb681cb627bb49d2 Mon Sep 17 00:00:00 2001 From: poyih <7092990+poyih@users.noreply.github.com> Date: Mon, 14 Jul 2025 23:37:14 +1000 Subject: [PATCH 1/2] Update start.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 开启ipv6支持 --- start.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/start.sh b/start.sh index d6d2314..1a5da49 100755 --- a/start.sh +++ b/start.sh @@ -32,6 +32,14 @@ if [ -z ${PORT} ]; then PORT=9102 fi +if [ "${IPV6}" = "true" ]; then + listen_addr="::" + echo "IPv6 is enabled." +else + listen_addr="0.0.0.0" + echo "IPv6 is disabled. Defaulting to IPv4." +fi + echo "Generating new config..." echo "[snell-server]" >>${CONF} echo "listen = :::${PORT}" >>${CONF} From 038d021da89f9efadc30f16a361279326ecaa650 Mon Sep 17 00:00:00 2001 From: poyih <7092990+poyih@users.noreply.github.com> Date: Mon, 14 Jul 2025 23:43:59 +1000 Subject: [PATCH 2/2] Update start.sh --- start.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/start.sh b/start.sh index 1a5da49..6ef119c 100755 --- a/start.sh +++ b/start.sh @@ -32,12 +32,10 @@ if [ -z ${PORT} ]; then PORT=9102 fi -if [ "${IPV6}" = "true" ]; then - listen_addr="::" - echo "IPv6 is enabled." +if [ -z ${IPV6} ]; then + IPV6=false else - listen_addr="0.0.0.0" - echo "IPv6 is disabled. Defaulting to IPv4." + echo "Using predefined IPV6: ${IPV6}" fi echo "Generating new config..."