Fix Environment File
This commit is contained in:
@ -54,10 +54,10 @@ check_version() {
|
|||||||
|
|
||||||
|
|
||||||
load_hysteria2_env() {
|
load_hysteria2_env() {
|
||||||
if [ -f /etc/hysteria/hysteria2.env ]; then
|
if [ -f /etc/hysteria/.configs.env ]; then
|
||||||
export $(grep -v '^#' /etc/hysteria/hysteria2.env | xargs)
|
export $(grep -v '^#' /etc/hysteria/.configs.env| xargs)
|
||||||
else
|
else
|
||||||
echo "Error: hysteria2.env file not found. Using default SNI 'bts.com'."
|
echo "Error: configs.env file not found. Using default SNI 'bts.com'."
|
||||||
SNI="bts.com"
|
SNI="bts.com"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user