|
|
@@ -123,9 +123,7 @@ find_bin() {
|
|
|
|
|
|
gen_config_file() {
|
|
|
local hostip=$(get_host_ip $(uci_get_by_name $1 server))
|
|
|
- if [ "$hostip" == "127.0.0.1" ]; then
|
|
|
- hostip=$(uci_get_by_name $1 ip)
|
|
|
- else
|
|
|
+ if [ "$hostip" != "127.0.0.1" ]; then
|
|
|
uci_set_by_name $1 ip $hostip
|
|
|
fi
|
|
|
[ "$2" == "0" -a "$kcp_flag" == "1" ] && hostip="127.0.0.1"
|
|
|
@@ -141,6 +139,7 @@ gen_config_file() {
|
|
|
fastopen="false"
|
|
|
fi
|
|
|
local type=$(uci_get_by_name $1 type)
|
|
|
+
|
|
|
case "$type" in
|
|
|
ss)
|
|
|
cat <<-EOF >$config_file
|
|
|
@@ -281,7 +280,7 @@ start_dns() {
|
|
|
purge_cache=off;
|
|
|
}
|
|
|
EOF
|
|
|
- /usr/sbin/pdnsd -c /var/etc/pdnsd.conf &
|
|
|
+ /usr/sbin/pdnsd -c /var/etc/pdnsd.conf >/dev/null 2>&1 &
|
|
|
}
|
|
|
if [ "$ssr_dns" != "0" ]; then
|
|
|
case "$run_mode" in
|