diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-07-08 09:23:10 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-07-08 09:23:10 +0200 |
commit | 5c1ccbddf0c6fdfd98cb3204c1cd4726862855f2 (patch) | |
tree | 69269d6a8ec41134dfdb98c6590fc77e9fdaa64c /src/config.go | |
parent | ed31e757392d1f8a907250b19c64b59451c440db (diff) |
Added source verification
Diffstat (limited to 'src/config.go')
-rw-r--r-- | src/config.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/config.go b/src/config.go index 8281581..4edaa2e 100644 --- a/src/config.go +++ b/src/config.go @@ -61,8 +61,8 @@ func ipcGetOperation(device *Device, socket *bufio.ReadWriter) error { if peer.endpoint != nil { send("endpoint=" + peer.endpoint.String()) } - send(fmt.Sprintf("tx_bytes=%d", peer.tx_bytes)) - send(fmt.Sprintf("rx_bytes=%d", peer.rx_bytes)) + send(fmt.Sprintf("tx_bytes=%d", peer.txBytes)) + send(fmt.Sprintf("rx_bytes=%d", peer.rxBytes)) send(fmt.Sprintf("persistent_keepalive_interval=%d", peer.persistentKeepaliveInterval)) for _, ip := range device.routingTable.AllowedIPs(peer) { send("allowed_ip=" + ip.String()) @@ -73,7 +73,6 @@ func ipcGetOperation(device *Device, socket *bufio.ReadWriter) error { // send lines for _, line := range lines { - device.log.Debug.Println("Response:", line) _, err := socket.WriteString(line + "\n") if err != nil { return err |