From eefa47b0f91416a3435102f89339b3ec4fcdd672 Mon Sep 17 00:00:00 2001 From: Mathias Hall-Andersen Date: Sun, 24 Sep 2017 21:35:25 +0200 Subject: Begin work on source address caching (linux) --- src/uapi.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/uapi.go') 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} -- cgit v1.2.3