From 355389430853fd3cce9cdcfc5c536ad1f7f23a3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=AC=E5=93=A5=E4=BE=83=E4=BE=83=E4=BE=83ygkkk?= <121604513+yonggekkk@users.noreply.github.com> Date: Sun, 2 Mar 2025 15:45:23 +0800 Subject: [PATCH] Update serv00.sh --- serv00.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/serv00.sh b/serv00.sh index d495948..d6fa5d2 100644 --- a/serv00.sh +++ b/serv00.sh @@ -349,7 +349,7 @@ openssl req -new -x509 -days 3650 -key "private.key" -out "cert.pem" -subj "/CN= { "tag": "hysteria-in1", "type": "hysteria2", - "listen": "$(dig @8.8.8.8 +time=5 +short "web$nb.serv00.com")", + "listen": "$(dig @8.8.8.8 +time=5 +short "web$nb.serv00.com" | sort -u)", "listen_port": $hy2_port, "users": [ { @@ -370,7 +370,7 @@ openssl req -new -x509 -days 3650 -key "private.key" -out "cert.pem" -subj "/CN= { "tag": "hysteria-in2", "type": "hysteria2", - "listen": "$(dig @8.8.8.8 +time=5 +short "$HOSTNAME")", + "listen": "$(dig @8.8.8.8 +time=5 +short "$HOSTNAME" | sort -u)", "listen_port": $hy2_port, "users": [ { @@ -391,7 +391,7 @@ openssl req -new -x509 -days 3650 -key "private.key" -out "cert.pem" -subj "/CN= { "tag": "hysteria-in3", "type": "hysteria2", - "listen": "$(dig @8.8.8.8 +time=5 +short "cache$nb.serv00.com")", + "listen": "$(dig @8.8.8.8 +time=5 +short "cache$nb.serv00.com" | sort -u)", "listen_port": $hy2_port, "users": [ { @@ -1101,9 +1101,9 @@ cat > list.txt <