mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
parent
7d5f49afc1
commit
b28f438a37
@ -52,7 +52,14 @@ start_pppd() {
|
||||
[ "$interval" != "$keepalive" ] || interval=5
|
||||
|
||||
config_get_bool peerdns "$cfg" peerdns 1
|
||||
[ "$peerdns" -eq 1 ] && peerdns="usepeerdns" || peerdns=""
|
||||
[ "$peerdns" -eq 1 ] && peerdns="usepeerdns" || {
|
||||
peerdns=""
|
||||
config_get dns "$config" dns
|
||||
for dns in $dns; do
|
||||
grep -q "$dns" /tmp/resolv.conf.auto 2>/dev/null || \
|
||||
echo "nameserver $dns" >> /tmp/resolv.conf.auto
|
||||
done
|
||||
}
|
||||
|
||||
config_get demand "$cfg" demand
|
||||
[ -n "$demand" ] && echo "nameserver 1.1.1.1" > /tmp/resolv.conf.auto
|
||||
|
Loading…
Reference in New Issue
Block a user