aboutsummaryrefslogtreecommitdiffstats
path: root/src/uapi.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-09-24 21:35:25 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-09-24 21:35:25 +0200
commiteefa47b0f91416a3435102f89339b3ec4fcdd672 (patch)
tree704e1f38f5e0cf8bba15607c16f2e2d1c23baedb /src/uapi.go
parentFix up fwmark handling (diff)
downloadwireguard-go-eefa47b0f91416a3435102f89339b3ec4fcdd672.tar.xz
wireguard-go-eefa47b0f91416a3435102f89339b3ec4fcdd672.zip
Begin work on source address caching (linux)
Diffstat (limited to '')
-rw-r--r--src/uapi.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/uapi.go b/src/uapi.go
index 428b173..3a2f3f9 100644
--- a/src/uapi.go
+++ b/src/uapi.go
@@ -273,8 +273,7 @@ func ipcSetOperation(device *Device, socket *bufio.ReadWriter) *IPCError {
}
case "endpoint":
- // TODO: Only IP and port
- addr, err := net.ResolveUDPAddr("udp", value)
+ addr, err := parseEndpoint(value)
if err != nil {
logError.Println("Failed to set endpoint:", value)
return &IPCError{Code: ipcErrorInvalid}