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 <