I was accidentally overwriting the dchp_hosts_file variable
This commit is contained in:
parent
111c8f9db6
commit
3bbd1e3168
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -20,7 +20,7 @@ app.secret_key = "6ab77f3c45447429c2ae163c260a626029519a66450e474c"
|
|||
|
||||
users_file = "/etc/freeradius/users.dpto2"
|
||||
dhcp_hosts_file = "/etc/dnsmasq.d/dpto2/dhcp-hosts"
|
||||
dhcp_hosts_file = "/etc/dnsmasq.d/dpto2/dhcp-opts"
|
||||
dhcp_opts_file = "/etc/dnsmasq.d/dpto2/dhcp-opts"
|
||||
|
||||
def reload_freeradius():
|
||||
call("./reload_freeradius")
|
||||
|
@ -206,7 +206,7 @@ def ips():
|
|||
r = parse_dchp_host(line)
|
||||
ip = int(r.ip.split(".")[-1])
|
||||
ipmap[ip] = Ip(meta.get("reserved-by",""), False)
|
||||
print(ipmap)
|
||||
meta = {}
|
||||
return render_template("ips.html", ipmap=ipmap)
|
||||
|
||||
@app.route("/ip/<int:addr>")
|
||||
|
|
Loading…
Reference in a new issue