From a5d2a7d577c39c13a6d315d5df8356366bcc1294 Mon Sep 17 00:00:00 2001 From: HaneRo Date: Wed, 19 Oct 2022 10:38:31 +0800 Subject: [PATCH] Update install.sh --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 0d633b1..807cbd0 100644 --- a/install.sh +++ b/install.sh @@ -594,7 +594,7 @@ function ws_information() { function ws_link() { DOMAIN=$(cat ${domain_tmp_dir}/domain) UUID=$(cat ${xray_conf_dir}/config.json | jq .inbounds[0].settings.clients[0].id | tr -d '"') - PORT=$(cat "/etc/nginx/conf.d/${DOMAIN}.conf" | grep 'ssl http2' | awk -F ' ' '{print $2}' ) + PORT=$(cat "/etc/nginx/conf.d/${DOMAIN}.conf" | grep -m 1 'ssl http2' | awk -F ' ' '{print $2}' ) FLOW=$(cat ${xray_conf_dir}/config.json | jq .inbounds[0].settings.clients[0].flow | tr -d '"') WS_PATH=$(cat ${xray_conf_dir}/config.json | jq .inbounds[0].streamSettings.wsSettings.path | tr -d '"') WS_PATH_WITHOUT_SLASH=$(echo $WS_PATH | tr -d '/')