odhcp6c: pass on delegate-flag on to ds-lite interface
[openwrt.git] / package / network / ipv6 / odhcp6c / files / dhcpv6.script
index 13732df..563c9ad 100755 (executable)
@@ -84,6 +84,7 @@ setup_interface () {
                json_add_string proto "dslite"
                json_add_string peeraddr "$AFTR_IP"
                json_add_string tunlink "$INTERFACE"
+               [ -n "$IFACE_DSLITE_DELEGATE" ] && json_add_boolean delegate "$IFACE_DSLITE_DELEGATE"
                json_close_object
                ubus call network add_dynamic "$(json_dump)"
        fi