proto-shell: for default routes push a string instead of an integer as netmask
authorFelix Fietkau <nbd@openwrt.org>
Fri, 14 Oct 2011 00:44:19 +0000 (02:44 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 14 Oct 2011 00:44:19 +0000 (02:44 +0200)
dummy/netifd-proto.sh

index 48b12927af6dff6b02230cc38f841c65f3a96bc1..e10f6015f90d00e414e7f6eba7e54ada800a4676 100755 (executable)
@@ -110,7 +110,7 @@ _proto_push_route() {
 
        json_add_table ""
        json_add_string target "$target"
-       json_add_integer mask "$mask"
+       json_add_string mask "$mask"
        json_add_string gateway "$gw"
        json_close_table
 }