Track TX/RX bytes over session and if MTU was adjusted, add to admin socket getSession

This commit is contained in:
Neil Alexander 2018-05-18 17:59:29 +01:00
parent 546c5f1412
commit ec371af84f
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 9 additions and 0 deletions

View file

@ -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)
}