Update variables

This commit is contained in:
Whispering Wind
2024-08-12 00:35:00 +03:30
committed by GitHub
parent 69159ea050
commit b5f3b0b459

View File

@ -5,8 +5,8 @@ source /etc/hysteria/core/scripts/path.sh
get_singbox_domain_and_port() { get_singbox_domain_and_port() {
if [ -f "$SINGBOX_ENV" ]; then if [ -f "$SINGBOX_ENV" ]; then
local domain port local domain port
domain=$(grep -E '^hysteria_DOMAIN=' "$SINGBOX_ENV" | cut -d'=' -f2) domain=$(grep -E '^HYSTERIA_DOMAIN=' "$SINGBOX_ENV" | cut -d'=' -f2)
port=$(grep -E '^hysteria_PORT=' "$SINGBOX_ENV" | cut -d'=' -f2) port=$(grep -E '^HYSTERIA_PORT=' "$SINGBOX_ENV" | cut -d'=' -f2)
echo "$domain" "$port" echo "$domain" "$port"
else else
echo "" echo ""