aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/ppp/files/lib
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/lib
parenta8e08164909684c3012b9d6eb7b3656ba650dbb3 (diff)
downloadupstream-64de1cb1fd5a3363d51275735613fe24af7a4964.tar.gz
upstream-64de1cb1fd5a3363d51275735613fe24af7a4964.tar.bz2
upstream-64de1cb1fd5a3363d51275735613fe24af7a4964.zip
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/lib')
-rwxr-xr-xpackage/network/services/ppp/files/lib/netifd/ppp6-up1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/network/services/ppp/files/lib/netifd/ppp6-up b/package/network/services/ppp/files/lib/netifd/ppp6-up
index 07b6a43ca5..8ad03223e5 100755
--- a/package/network/services/ppp/files/lib/netifd/ppp6-up
+++ b/package/network/services/ppp/files/lib/netifd/ppp6-up
@@ -23,6 +23,7 @@ if [ -n "$AUTOIPV6" ]; then
json_add_string proto "dhcpv6"
[ -n "$EXTENDPREFIX" ] && json_add_string extendprefix 1
[ -n "$IP6TABLE" ] && json_add_string ip6table $IP6TABLE
+ [ -n "$PEERDNS" ] && json_add_boolean peerdns $PEERDNS
json_close_object
ubus call network add_dynamic "$(json_dump)"
fi