rpc: update getversion RPC-call

closes #1035
This commit is contained in:
Anna Shaleva 2020-06-10 10:01:21 +03:00
parent 7ddcc35daf
commit 3418e4f7f4
4 changed files with 29 additions and 14 deletions

View file

@ -4,8 +4,9 @@ type (
// Version model used for reporting server version
// info.
Version struct {
Port uint16 `json:"tcp_port"`
TCPPort uint16 `json:"tcp_port"`
WSPort uint16 `json:"ws_port,omitempty"`
Nonce uint32 `json:"nonce"`
UserAgent string `json:"useragent"`
UserAgent string `json:"user_agent"`
}
)