1
0
Fork 0
mirror of https://github.com/sileht/bird-lg.git synced 2024-11-22 06:54:43 +01:00

fix prefix option

This commit is contained in:
Mehdi ABAAKOUK 2011-12-19 00:17:30 +01:00
parent fb22ef2ff8
commit 1f56e3b275

3
lg.py
View file

@ -37,6 +37,9 @@ def check_ipv6(n):
def hello(): def hello():
return render_template('index.html') return render_template('index.html')
@app.route("/<host>/<proto>/prefix/")
@app.route("/<host>/<proto>/prefix/<prefix>")
@app.route("/<host>/<proto>/prefix/<prefix>/<mask>")
@app.route("/<host>/<proto>/prefix<all>/") @app.route("/<host>/<proto>/prefix<all>/")
@app.route("/<host>/<proto>/prefix<all>/<prefix>") @app.route("/<host>/<proto>/prefix<all>/<prefix>")
@app.route("/<host>/<proto>/prefix<all>/<prefix>/<mask>") @app.route("/<host>/<proto>/prefix<all>/<prefix>/<mask>")