update UserPass
This commit is contained in:
6
menu.sh
6
menu.sh
@ -60,13 +60,13 @@ show_uri() {
|
|||||||
port=$(jq -r '.listen' /etc/hysteria/config.json | cut -d':' -f2)
|
port=$(jq -r '.listen' /etc/hysteria/config.json | cut -d':' -f2)
|
||||||
sha256=$(jq -r '.tls.pinSHA256' /etc/hysteria/config.json)
|
sha256=$(jq -r '.tls.pinSHA256' /etc/hysteria/config.json)
|
||||||
obfspassword=$(jq -r '.obfs.salamander.password' /etc/hysteria/config.json)
|
obfspassword=$(jq -r '.obfs.salamander.password' /etc/hysteria/config.json)
|
||||||
authpassword=$(jq -r '.auth.password' /etc/hysteria/config.json)
|
authpassword=$(jq -r '.auth.userpass.default' /etc/hysteria/config.json)
|
||||||
|
|
||||||
if systemctl is-active --quiet hysteria-server.service; then
|
if systemctl is-active --quiet hysteria-server.service; then
|
||||||
IP=$(curl -s -4 ip.sb)
|
IP=$(curl -s -4 ip.sb)
|
||||||
IP6=$(curl -s -6 ip.sb)
|
IP6=$(curl -s -6 ip.sb)
|
||||||
URI="hy2://$authpassword@$IP:$port?obfs=salamander&obfs-password=$obfspassword&pinSHA256=$sha256&insecure=1&sni=bts.com#Hysteria2-IPv4"
|
URI="hy2://default:$authpassword@$IP:$port?obfs=salamander&obfs-password=$obfspassword&pinSHA256=$sha256&insecure=1&sni=bts.com#Hysteria2-IPv4"
|
||||||
URI6="hy2://$authpassword@[$IP6]:$port?obfs=salamander&obfs-password=$obfspassword&pinSHA256=$sha256&insecure=1&sni=bts.com#Hysteria2-IPv6"
|
URI6="hy2://:default$authpassword@[$IP6]:$port?obfs=salamander&obfs-password=$obfspassword&pinSHA256=$sha256&insecure=1&sni=bts.com#Hysteria2-IPv6"
|
||||||
|
|
||||||
cols=$(tput cols)
|
cols=$(tput cols)
|
||||||
rows=$(tput lines)
|
rows=$(tput lines)
|
||||||
|
|||||||
Reference in New Issue
Block a user