mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-22 23:27:45 +01:00
Update dashboard.py
This commit is contained in:
parent
d801c5911e
commit
78d3f338fb
@ -22,7 +22,7 @@ from flask_qrcode import QRcode
|
|||||||
from tinydb import TinyDB, Query
|
from tinydb import TinyDB, Query
|
||||||
from icmplib import ping, multiping, traceroute, resolve, Host, Hop
|
from icmplib import ping, multiping, traceroute, resolve, Host, Hop
|
||||||
# Dashboard Version
|
# Dashboard Version
|
||||||
dashboard_version = 'v2.3.1'
|
dashboard_version = 'v3.0'
|
||||||
# Dashboard Config Name
|
# Dashboard Config Name
|
||||||
dashboard_conf = 'wg-dashboard.ini'
|
dashboard_conf = 'wg-dashboard.ini'
|
||||||
# Upgrade Required
|
# Upgrade Required
|
||||||
@ -1140,8 +1140,9 @@ def init_dashboard():
|
|||||||
config['Server'] = {}
|
config['Server'] = {}
|
||||||
if 'wg_conf_path' not in config['Server']:
|
if 'wg_conf_path' not in config['Server']:
|
||||||
config['Server']['wg_conf_path'] = '/etc/wireguard'
|
config['Server']['wg_conf_path'] = '/etc/wireguard'
|
||||||
|
# TODO: IPv6 for the app IP might need to configure with Gunicorn...
|
||||||
if 'app_ip' not in config['Server']:
|
if 'app_ip' not in config['Server']:
|
||||||
config['Server']['app_ip'] = '::'
|
config['Server']['app_ip'] = '0.0.0.0'
|
||||||
if 'app_port' not in config['Server']:
|
if 'app_port' not in config['Server']:
|
||||||
config['Server']['app_port'] = '10086'
|
config['Server']['app_port'] = '10086'
|
||||||
if 'auth_req' not in config['Server']:
|
if 'auth_req' not in config['Server']:
|
||||||
|
Loading…
Reference in New Issue
Block a user