Update URI Scheme

This commit is contained in:
Whispering Wind
2024-06-23 00:14:57 +03:30
committed by GitHub
parent 8a597b0ce7
commit a82d176351

View File

@ -97,8 +97,8 @@ systemctl restart hysteria-server.service >/dev/null 2>&1
if systemctl is-active --quiet hysteria-server.service; then if systemctl is-active --quiet hysteria-server.service; then
# Step 14: Generate URI Scheme # Step 14: Generate URI Scheme
echo "Generating URI Scheme..." echo "Generating URI Scheme..."
IP=$(curl -4 ip.sb) IP=$(curl -4 ip.gs)
IP6=$(curl -6 ip.sb) IP6=$(curl -6 ip.gs)
URI="hy2://default%3A$authpassword@$IP:$port?obfs=salamander&obfs-password=$obfspassword&pinSHA256=$sha256&insecure=1&sni=bts.com#Hysteria2-IPv4" URI="hy2://default%3A$authpassword@$IP:$port?obfs=salamander&obfs-password=$obfspassword&pinSHA256=$sha256&insecure=1&sni=bts.com#Hysteria2-IPv4"
URI6="hy2://default%3A$authpassword@[$IP6]:$port?obfs=salamander&obfs-password=$obfspassword&pinSHA256=$sha256&insecure=1&sni=bts.com#Hysteria2-IPv6" URI6="hy2://default%3A$authpassword@[$IP6]:$port?obfs=salamander&obfs-password=$obfspassword&pinSHA256=$sha256&insecure=1&sni=bts.com#Hysteria2-IPv6"
# Step 15: Generate and display QR Code in the center of the terminal # Step 15: Generate and display QR Code in the center of the terminal