diff --git a/main.py b/main.py index 9cb60cc..c9fc27f 100755 --- a/main.py +++ b/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/")