summaryrefslogtreecommitdiffhomepage
path: root/dummy/netifd-proto.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dummy/netifd-proto.sh')
-rwxr-xr-xdummy/netifd-proto.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/dummy/netifd-proto.sh b/dummy/netifd-proto.sh
index c50d776..ae05b9c 100755
--- a/dummy/netifd-proto.sh
+++ b/dummy/netifd-proto.sh
@@ -53,6 +53,12 @@ proto_init_update() {
[ -n "$3" ] && json_add_boolean "address-external" "$external"
}
+proto_add_dns_server() {
+ local address="$1"
+
+ jshn_append PROTO_DNS "$address"
+}
+
proto_add_ipv4_address() {
local address="$1"
local mask="$2"
@@ -125,6 +131,7 @@ proto_send_update() {
_proto_push_array "ip6addr" "$PROTO_IP6ADDR" _proto_push_ip
_proto_push_array "route" "$PROTO_ROUTE" _proto_push_route
_proto_push_array "route6" "$PROTO_ROUTE6" _proto_push_route
+ _proto_push_array "dns" "$PROTO_DNS" _proto_push_ip
_proto_notify
}