From 8dc0031475413ed07da8aa8a6865e9b62adf1bb9 Mon Sep 17 00:00:00 2001 From: Donald Cheng Hong Zou Date: Sat, 3 Apr 2021 14:30:02 -0400 Subject: [PATCH] Update dashboard.py --- src/dashboard.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dashboard.py b/src/dashboard.py index 8103f70..ff5cb83 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -4,7 +4,6 @@ import subprocess from datetime import datetime, date, time, timedelta from operator import itemgetter from tinydb import TinyDB, Query -import threading conf_location = "/etc/wireguard" app = Flask("Wireguard Dashboard") @@ -49,7 +48,7 @@ def get_conf_peers_data(config_name): peer_data = {} # Read Configuration File Start - conf_location = "/etc/wireguard/wg0.conf" + conf_location = "/etc/wireguard/"+config_name+".conf" f = open(conf_location, 'r') file = f.read().split("\n") conf_peer_data = {