summaryrefslogtreecommitdiff
path: root/package/network/services/ppp/files/ppp.sh
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2017-03-06 13:47:50 +0100
committerJo-Philipp Wich <jo@mein.io>2017-03-07 11:26:39 +0100
commit64de1cb1fd5a3363d51275735613fe24af7a4964 (patch)
treeb3e99fd27131c9ef46948f629ec68b419968f55d /package/network/services/ppp/files/ppp.sh
parenta8e08164909684c3012b9d6eb7b3656ba650dbb3 (diff)
downloadmtk-20170518-64de1cb1fd5a3363d51275735613fe24af7a4964.zip
mtk-20170518-64de1cb1fd5a3363d51275735613fe24af7a4964.tar.gz
mtk-20170518-64de1cb1fd5a3363d51275735613fe24af7a4964.tar.bz2
ppp: propagate master peerdns setting to dynamic slave interface
Honour the parent interfaces peerdns option when spawning a virtual DHCPv6 interface in order to avoid pulling in IPv6 DNS servers when the user opted to inhibit peer DNS servers in the configuration. Fixes #597. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'package/network/services/ppp/files/ppp.sh')
-rwxr-xr-xpackage/network/services/ppp/files/ppp.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/network/services/ppp/files/ppp.sh b/package/network/services/ppp/files/ppp.sh
index 9c27b3c..73bc316 100755
--- a/package/network/services/ppp/files/ppp.sh
+++ b/package/network/services/ppp/files/ppp.sh
@@ -88,7 +88,7 @@ ppp_generic_setup() {
local config="$1"; shift
local localip
- json_get_vars ipv6 ip6table demand keepalive keepalive_adaptive username password pppd_options pppname unnumbered persist maxfail holdoff
+ json_get_vars ipv6 ip6table demand keepalive keepalive_adaptive username password pppd_options pppname unnumbered persist maxfail holdoff peerdns
if [ "$ipv6" = 0 ]; then
ipv6=""
elif [ -z "$ipv6" -o "$ipv6" = auto ]; then
@@ -137,6 +137,7 @@ ppp_generic_setup() {
${ipv6:++ipv6} \
${autoipv6:+set AUTOIPV6=1} \
${ip6table:+set IP6TABLE=$ip6table} \
+ ${peerdns:+set PEERDNS=$peerdns} \
nodefaultroute \
usepeerdns \
$demand $persist maxfail $maxfail \