comment ensure_config_env

This commit is contained in:
Whispering Wind
2024-12-07 23:42:49 +03:30
committed by GitHub
parent d14ce8127d
commit 2879a185b4

View File

@ -1,12 +1,12 @@
#!/bin/bash #!/bin/bash
source /etc/hysteria/core/scripts/path.sh source /etc/hysteria/core/scripts/path.sh
ensure_config_env() { # ensure_config_env() {
if [ ! -f "$CONFIG_ENV" ]; then # if [ ! -f "$CONFIG_ENV" ]; then
echo ".configs.env not found. Creating it with default SNI=bts.com." # echo ".configs.env not found. Creating it with default SNI=bts.com."
echo "SNI=bts.com" > "$CONFIG_ENV" # echo "SNI=bts.com" > "$CONFIG_ENV"
fi # fi
} # }
add_ips() { add_ips() {
ipv4_address="" ipv4_address=""
@ -55,7 +55,7 @@ edit_ip() {
fi fi
} }
ensure_config_env # ensure_config_env
case "$1" in case "$1" in
add) add)
add_ips add_ips