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