ppp: add sourcefilter option support
[openwrt/staging/stintel.git] / package / network / services / ppp / files / lib / netifd / ppp6-up
index 3852bf63ffa2616d7bf1efe10f8468312a5a5f32..9355f596784b3f96bb5e1eabb259d109ed44973a 100755 (executable)
@@ -27,6 +27,7 @@ if [ -n "$AUTOIPV6" ]; then
        [ -n "$EXTENDPREFIX" ] && json_add_string extendprefix 1
        [ -n "$IP6TABLE" ] && json_add_string ip6table $IP6TABLE
        [ -n "$PEERDNS" ] && json_add_boolean peerdns $PEERDNS
+       [ "$NOSOURCEFILTER" = "1" ] && json_add_boolean sourcefilter "0"
        json_close_object
        ubus call network add_dynamic "$(json_dump)"
 fi