diff options
-rwxr-xr-x | src/conf_mode/dhcp_server.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/conf_mode/dhcp_server.py b/src/conf_mode/dhcp_server.py index 239c44076..ba0749b97 100755 --- a/src/conf_mode/dhcp_server.py +++ b/src/conf_mode/dhcp_server.py @@ -570,10 +570,9 @@ def get_config(): # add router bytes bytes = subnet['static_router'].split('.') for b in bytes: - if b != '0': - string += b - if b is not bytes[-1]: - string += ',' + string += b + if b is not bytes[-1]: + string += ',' subnet['static_route'] = string |