added endpoint config...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-03-27 17:42:12 +03:00
parent cf455d2c53
commit efd06a9322

View File

@ -38,11 +38,23 @@ LAN_GATE=SKIP
REBOOT=${REBOOT:=1}
USER=shadowsocks
# Wireguard config...
DFL_ENDPOINT=${DFL_ENDPOINT:=$(\
which dig > /dev/null 2>&1 \
&& (dig +short ${DOMAIN:-$DFL_DOMAIN} \
| tail -1) \
|| echo "${DOMAIN:-$DFL_DOMAIN}")}
xread "Shadowsocks endpoint: " ENDPOINT
DFL_ENDPOINT_PORT=${DFL_ENDPOINT_PORT:=5555}
xread "Shadowsocks endpoint port: " ENDPOINT_PORT
readVars
USER=shadowsocks
#----------------------------------------------------------------------
@ -58,7 +70,7 @@ OPTS_STAGE_2="\
#----------------------------------------------------------------------
echo "# Building config..."
buildAssets
buildAssets ENDPOINT ENDPOINT_PORT
echo "# Creating CT..."
pctCreateAlpine $ID "$PASS"