BugFix: fix install script issue, and change openwrt script default port for seconddns
This commit is contained in:
2
install
2
install
@@ -65,7 +65,7 @@ clean_service()
|
|||||||
|
|
||||||
get_systemd_path()
|
get_systemd_path()
|
||||||
{
|
{
|
||||||
service="`systemctl --no-legend| grep .service | head -n 1 | awk '{print $1}'`"
|
service="`systemctl --no-legend| grep '\.service' | head -n 1 | awk '{print $1}'`"
|
||||||
SERVICE_PATH="`systemctl show $service | grep FragmentPath | awk -F'=' '{print $2}'`"
|
SERVICE_PATH="`systemctl show $service | grep FragmentPath | awk -F'=' '{print $2}'`"
|
||||||
dirname $SERVICE_PATH
|
dirname $SERVICE_PATH
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ load_second_server()
|
|||||||
config_get_bool seconddns_enabled "$section" "seconddns_enabled" "0"
|
config_get_bool seconddns_enabled "$section" "seconddns_enabled" "0"
|
||||||
[ "$seconddns_enabled" = "0" ] && return
|
[ "$seconddns_enabled" = "0" ] && return
|
||||||
|
|
||||||
config_get seconddns_port "$section" "seconddns_port" "7053"
|
config_get seconddns_port "$section" "seconddns_port" "6553"
|
||||||
|
|
||||||
config_get_bool seconddns_no_speed_check "$section" "seconddns_no_speed_check" "0"
|
config_get_bool seconddns_no_speed_check "$section" "seconddns_no_speed_check" "0"
|
||||||
[ "$seconddns_no_speed_check" = "1" ] && ARGS="$ARGS -no-speed-check"
|
[ "$seconddns_no_speed_check" = "1" ] && ARGS="$ARGS -no-speed-check"
|
||||||
|
|||||||
Reference in New Issue
Block a user