summaryrefslogtreecommitdiffhomepage
path: root/dummy/netifd-proto.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dummy/netifd-proto.sh')
-rwxr-xr-xdummy/netifd-proto.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dummy/netifd-proto.sh b/dummy/netifd-proto.sh
index 69aa27d..7482a83 100755
--- a/dummy/netifd-proto.sh
+++ b/dummy/netifd-proto.sh
@@ -127,7 +127,7 @@ _proto_push_route() {
json_add_object ""
json_add_string target "$target"
json_add_string netmask "$mask"
- json_add_string gateway "$gw"
+ [ -n "$gw" ] && json_add_string gateway "$gw"
json_close_object
}