mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-09-01 07:30:12 +02:00
Fix rx and tx value assignment in WireGuard parser
This commit is contained in:
parent
e4a1d715ec
commit
a25add722a
1 changed files with 4 additions and 4 deletions
|
@ -185,7 +185,7 @@ def wireguard_status(request):
|
||||||
if key == 'allowed-ips':
|
if key == 'allowed-ips':
|
||||||
output[interface][peer]['allowed-ips'].append(value)
|
output[interface][peer]['allowed-ips'].append(value)
|
||||||
elif key == 'transfer':
|
elif key == 'transfer':
|
||||||
tx, rx = value.split()[-2:]
|
rx, tx = value.split()[-2:]
|
||||||
output[interface][peer]['transfer'] = {'tx': int(tx), 'rx': int(rx)}
|
output[interface][peer]['transfer'] = {'tx': int(tx), 'rx': int(rx)}
|
||||||
elif key == 'endpoints':
|
elif key == 'endpoints':
|
||||||
output[interface][peer]['endpoints'] = value
|
output[interface][peer]['endpoints'] = value
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue