Update LuCI configration

This commit is contained in:
Nick Peng
2018-12-28 19:57:48 +08:00
parent 4c81b46f76
commit 8ff338852e
7 changed files with 35 additions and 14 deletions

View File

@@ -118,6 +118,7 @@ load_server()
config_get "type" "$section" "type" "udp"
config_get "ip" "$section" "ip" ""
config_get "blacklist_ip" "$section" "blacklist_ip" "0"
config_get "check_edns" "$section" "check_edns" "0"
if [ "$enabled" = "0" ]; then
return
@@ -144,6 +145,10 @@ load_server()
ADDITIONAL_ARGS="$ADDITIONAL_ARGS -blacklist-ip"
fi
if [ "$check_edns" != "0" ]; then
ADDITIONAL_ARGS="$ADDITIONAL_ARGS -check-edns"
fi
conf_append "$SERVER" "$ip:$port $ADDITIONAL_ARGS"
}