Change SNI

This commit is contained in:
ReturnFI
2024-09-05 13:22:35 +00:00
parent cee86069b2
commit 0496e35126
3 changed files with 11 additions and 6 deletions

View File

@ -12,7 +12,8 @@ hysteria2_install_handler() {
fi
while true; do
read -p "Enter the new port number you want to use: " port
read -p "Enter the SNI (default: bts.com): " sni
read -p "Enter the port number you want to use: " port
if ! [[ "$port" =~ ^[0-9]+$ ]] || [ "$port" -lt 1 ] || [ "$port" -gt 65535 ]; then
echo "Invalid port number. Please enter a number between 1 and 65535."
else
@ -20,7 +21,7 @@ hysteria2_install_handler() {
fi
done
python3 $CLI_PATH install-hysteria2 --port "$port"
python3 $CLI_PATH install-hysteria2 --port "$port" --sni "$sni"
}
hysteria2_add_user_handler() {