mirror of
https://github.com/adamwalach/openvpn-web-ui.git
synced 2026-04-25 04:46:24 +03:00
[GH-ISSUE #29] Status fields mapping - simple fix #26
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/openvpn-web-ui#26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bugsyb on GitHub (Nov 12, 2020).
Original GitHub issue: https://github.com/adamwalach/openvpn-web-ui/issues/29
Hi Adam,
Would you be able please kindly to fix the little problem with mapping fields?
[https://imgur.com/a/c9GBERj]
The KB received shows 0, the KB Sent shows value, in fact received in KBytes, Connected Since shows Sent but in B not KB, and Username shows connected since but in timestamp, not date.
Belief is that it is down to parse.go section (below is what I thought would fix it - but something is wrong with this - not sure why field[4] gets 0, hence moved on to next field.
github.com/adamwalach/openvpn-web-ui@075614837f/vendor/github.com/adamwalach/go-openvpn/server/mi/parse.go (L91)Hope this is a 1 minute issue for you to fix.
Thank you in advance.
@bugsyb commented on GitHub (Nov 12, 2020):
Root cause is that currently there is IPv6 address included on status output, hence need to skip it (or map to new table field - skipping it in my case:
Output:
@bugsyb commented on GitHub (Nov 12, 2020):
Pending fix to be applied, pls.