estetic change

This commit is contained in:
Mehdi ABAAKOUK 2011-12-16 12:55:39 +01:00
parent ff0b8c1259
commit 4c4e324768
1 changed files with 1 additions and 1 deletions

2
lg.py
View File

@ -37,7 +37,7 @@ def hello():
@app.route("/<host>/<proto>/prefix/<prefix>")
@app.route("/<host>/<proto>/prefix/<prefix>/<mask>")
def prefix(host, proto, prefix, mask=""):
output = '<h3>' + host + '(' + proto + ') show route for ' + prefix + '/' + mask + '</h3>'
output = '<h3>' + host + '(' + proto + ') show route for ' + prefix + (mask and '/' + mask or '' ) + '</h3>'
# security check
if ( (proto == "ipv6" and check_ipv6(prefix)) or (proto == "ipv4" and check_ipv4(prefix)) ) and check_mask(mask):