mirror of
https://github.com/Ysurac/openmptcprouter-vps-admin.git
synced 2025-02-14 19:41:52 +00:00
Fix also for status
This commit is contained in:
parent
14f9fc1996
commit
860a0ab51c
1 changed files with 4 additions and 4 deletions
|
@ -420,10 +420,10 @@ async def status(current_user: User = Depends(get_current_user)):
|
|||
vps_omr_version = os.popen("grep -s 'OpenMPTCProuter VPS' /etc/* | awk '{print $4}'").read().rstrip()
|
||||
mptcp_enabled = os.popen('sysctl -n net.mptcp.mptcp_enabled').read().rstrip()
|
||||
shadowsocks_port = current_user.shadowsocks_port
|
||||
if not shadowsocks_port == None:
|
||||
ss_traffic = get_bytes_ss(current_user.shadowsocks_port)
|
||||
else:
|
||||
ss_traffic = 0
|
||||
#if not shadowsocks_port == None:
|
||||
# ss_traffic = get_bytes_ss(current_user.shadowsocks_port)
|
||||
#else:
|
||||
ss_traffic = 0
|
||||
|
||||
log.debug('Get status: done')
|
||||
if iface:
|
||||
|
|
Loading…
Reference in a new issue