mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-08-27 23:41:14 +00:00
v20210403.2
This commit is contained in:
@@ -2,11 +2,7 @@ import os
|
||||
from flask import Flask, request, render_template, redirect, url_for
|
||||
import subprocess
|
||||
from datetime import datetime, date, time, timedelta
|
||||
import sqlite3
|
||||
import time
|
||||
import requests
|
||||
from operator import itemgetter
|
||||
import collections
|
||||
from tinydb import TinyDB, Query
|
||||
conf_location = "/etc/wireguard"
|
||||
app = Flask("Wireguard Dashboard")
|
||||
@@ -14,9 +10,6 @@ app.config['TEMPLATES_AUTO_RELOAD'] = True
|
||||
css = ""
|
||||
conf_data = {}
|
||||
|
||||
|
||||
|
||||
|
||||
def get_conf_peer_key(config_name):
|
||||
keys = []
|
||||
try: peer_key = subprocess.check_output("wg show "+config_name+" peers", shell=True)
|
||||
|
Reference in New Issue
Block a user