mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Track TX/RX bytes over session and if MTU was adjusted, add to admin socket getSession
This commit is contained in:
parent
546c5f1412
commit
ec371af84f
2 changed files with 9 additions and 0 deletions
|
@ -374,6 +374,9 @@ func (a *admin) getData_getSessions() []admin_nodeInfo {
|
|||
{"IP", net.IP(sinfo.theirAddr[:]).String()},
|
||||
{"coords", fmt.Sprint(sinfo.coords)},
|
||||
{"MTU", fmt.Sprint(sinfo.getMTU())},
|
||||
{"wasMTUFixed", fmt.Sprint(sinfo.wasMTUFixed)},
|
||||
{"bytesSent", fmt.Sprint(sinfo.bytesSent)},
|
||||
{"bytesRecvd", fmt.Sprint(sinfo.bytesRecvd)},
|
||||
}
|
||||
infos = append(infos, info)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue