comment ensure_config_env
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user