diff --git a/lg.py b/lg.py index 2198f72..11ab038 100755 --- a/lg.py +++ b/lg.py @@ -37,7 +37,7 @@ def hello(): @app.route("///prefix/") @app.route("///prefix//") def prefix(host, proto, prefix, mask=""): - output = '

' + host + '(' + proto + ') show route for ' + prefix + '/' + mask + '

' + output = '

' + host + '(' + proto + ') show route for ' + prefix + (mask and '/' + mask or '' ) + '

' # security check if ( (proto == "ipv6" and check_ipv6(prefix)) or (proto == "ipv4" and check_ipv4(prefix)) ) and check_mask(mask):