diff --git a/init.sh b/init.sh index 5f42884..ae380d3 100755 --- a/init.sh +++ b/init.sh @@ -85,7 +85,7 @@ function config_https() { HTTPS_PORT=443 fi - sed -i "s@server web:.*;@server localhost:51980;@g" "${config_file}" + sed -i "s@server web[:0-9]*@server localhost:51980@g" "${config_file}" if [ "${USE_IPV6}" == "1" ]; then sed -i "s@# listen \[::\]:443@listen \[::\]:443@g" "${config_file}"