mirror of
https://github.com/sileht/bird-lg.git
synced 2024-11-25 16:24:43 +01:00
Merge pull request #12 from rodecker/master
Specify bird socket file location in config
This commit is contained in:
commit
a6b3a84080
|
@ -5,3 +5,6 @@ LOG_LEVEL="WARNING"
|
||||||
ACCESS_LIST = ["91.224.149.206", "178.33.111.110", "2a01:6600:8081:ce00::1"]
|
ACCESS_LIST = ["91.224.149.206", "178.33.111.110", "2a01:6600:8081:ce00::1"]
|
||||||
IPV4_SOURCE=""
|
IPV4_SOURCE=""
|
||||||
IPV6_SOURCE=""
|
IPV6_SOURCE=""
|
||||||
|
BIRD_SOCKET="/var/run/bird/bird.ctl"
|
||||||
|
BIRD6_SOCKET="/var/run/bird/bird6.ctl"
|
||||||
|
|
||||||
|
|
|
@ -96,8 +96,8 @@ def traceroute():
|
||||||
def bird():
|
def bird():
|
||||||
check_accesslist()
|
check_accesslist()
|
||||||
|
|
||||||
if request.path == "/bird": b = BirdSocket(file="/var/run/bird.ctl")
|
if request.path == "/bird": b = BirdSocket(file=app.config.get("BIRD_SOCKET"))
|
||||||
elif request.path == "/bird6": b = BirdSocket(file="/var/run/bird6.ctl")
|
elif request.path == "/bird6": b = BirdSocket(file=app.config.get("BIRD6_SOCKET"))
|
||||||
else: return "No bird socket selected"
|
else: return "No bird socket selected"
|
||||||
|
|
||||||
query = request.args.get("q","")
|
query = request.args.get("q","")
|
||||||
|
|
Loading…
Reference in a new issue