summaryrefslogtreecommitdiff
path: root/src/config.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-06-27 17:33:06 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-06-27 17:33:06 +0200
commit8236f3afa2eca0aae6c5da9560301c04d882c81b (patch)
tree5babaff66d6709f7f1fcdba69847ac684d1ef3de /src/config.go
parenteb75ff430d1f78e129bbfe49d612f241ca418df4 (diff)
downloadwireguard-go-8236f3afa2eca0aae6c5da9560301c04d882c81b.tar.gz
wireguard-go-8236f3afa2eca0aae6c5da9560301c04d882c81b.zip
Implemented MAC1/2 calculation
Diffstat (limited to 'src/config.go')
-rw-r--r--src/config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.go b/src/config.go
index 8865194..cb7e9ef 100644
--- a/src/config.go
+++ b/src/config.go
@@ -81,7 +81,7 @@ func ipcSetOperation(device *Device, socket *bufio.ReadWriter) *IPCError {
}
case "listen_port":
- _, err := fmt.Sscanf(value, "%ud", &device.listenPort)
+ _, err := fmt.Sscanf(value, "%ud", &device.address.Port)
if err != nil {
return &IPCError{Code: ipcErrorInvalidPort}
}