mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-06-28 01:07:03 +00:00
Fix rx and tx value assignment in WireGuard parser
This commit is contained in:
parent
e4a1d715ec
commit
a25add722a
@ -185,7 +185,7 @@ def wireguard_status(request):
|
||||
if key == 'allowed-ips':
|
||||
output[interface][peer]['allowed-ips'].append(value)
|
||||
elif key == 'transfer':
|
||||
tx, rx = value.split()[-2:]
|
||||
rx, tx = value.split()[-2:]
|
||||
output[interface][peer]['transfer'] = {'tx': int(tx), 'rx': int(rx)}
|
||||
elif key == 'endpoints':
|
||||
output[interface][peer]['endpoints'] = value
|
||||
|
Loading…
x
Reference in New Issue
Block a user