]> Cypherpunks.ru repositories - govpn.git/commitdiff
Do not print Conn field in statistics
authorSergey Matveev <stargrave@stargrave.org>
Sun, 7 Feb 2016 09:41:26 +0000 (12:41 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 7 Feb 2016 09:41:26 +0000 (12:41 +0300)
Signed-off-by: Sergey Matveev <stargrave@stargrave.org>
src/cypherpunks.ru/govpn/peer.go

index a9c0aaae8dbe386dad397e2df97aaea3a7ee9d03..5160bd4cc6b2f7b172d3441b90762faf73f71ee1 100644 (file)
@@ -79,7 +79,7 @@ type Peer struct {
        // Basic
        Addr string
        Id   *PeerId
-       Conn io.Writer
+       Conn io.Writer `json:"-"`
 
        // Traffic behaviour
        NoiseEnable bool