Change SNI
This commit is contained in:
@ -16,7 +16,7 @@ mkdir -p /etc/hysteria && cd /etc/hysteria/
|
||||
# Step 3: Generate CA key and certificate and download geo data
|
||||
echo "Generating CA key and certificate..."
|
||||
openssl ecparam -genkey -name prime256v1 -out ca.key >/dev/null 2>&1
|
||||
openssl req -new -x509 -days 36500 -key ca.key -out ca.crt -subj "/CN=bing.com" >/dev/null 2>&1
|
||||
openssl req -new -x509 -days 36500 -key ca.key -out ca.crt -subj "/CN=bts.com" >/dev/null 2>&1
|
||||
echo "Downloading geo data..."
|
||||
wget -O /etc/hysteria/geosite.dat https://raw.githubusercontent.com/Chocolate4U/Iran-v2ray-rules/release/geosite.dat >/dev/null 2>&1
|
||||
wget -O /etc/hysteria/geoip.dat https://raw.githubusercontent.com/Chocolate4U/Iran-v2ray-rules/release/geoip.dat >/dev/null 2>&1
|
||||
@ -105,8 +105,8 @@ if systemctl is-active --quiet hysteria-server.service; then
|
||||
echo "Generating URI Scheme..."
|
||||
IP=$(curl -4 ip.sb)
|
||||
IP6=$(curl -6 ip.sb)
|
||||
URI="hy2://$authpassword@$IP:$port?obfs=salamander&obfs-password=$obfspassword&pinSHA256=$sha256&insecure=1&sni=bing.com#Hysteria2-IPv4"
|
||||
URI6="hy2://$authpassword@[$IP6]:$port?obfs=salamander&obfs-password=$obfspassword&pinSHA256=$sha256&insecure=1&sni=bing.com#Hysteria2-IPv6"
|
||||
URI="hy2://$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"
|
||||
# Step 15: Generate and display QR Code in the center of the terminal
|
||||
cols=$(tput cols)
|
||||
rows=$(tput lines)
|
||||
|
||||
4
menu.sh
4
menu.sh
@ -65,8 +65,8 @@ show_uri() {
|
||||
if systemctl is-active --quiet hysteria-server.service; then
|
||||
IP=$(curl -s -4 ip.sb)
|
||||
IP6=$(curl -s -6 ip.sb)
|
||||
URI="hy2://$authpassword@$IP:$port?obfs=salamander&obfs-password=$obfspassword&pinSHA256=$sha256&insecure=1&sni=bing.com#Hysteria2-IPv4"
|
||||
URI6="hy2://$authpassword@[$IP6]:$port?obfs=salamander&obfs-password=$obfspassword&pinSHA256=$sha256&insecure=1&sni=bing.com#Hysteria2-IPv6"
|
||||
URI="hy2://$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"
|
||||
|
||||
cols=$(tput cols)
|
||||
rows=$(tput lines)
|
||||
|
||||
Reference in New Issue
Block a user