summaryrefslogtreecommitdiff
path: root/src/uapi.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/uapi.go')
-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}