From 6fa65bded45957434db08e5d33fe82a04af73a59 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 26 Sep 2017 15:15:27 +0200 Subject: Clean up error handling of listen port --- src/uapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/uapi.go') diff --git a/src/uapi.go b/src/uapi.go index 034033a..326216b 100644 --- a/src/uapi.go +++ b/src/uapi.go @@ -151,7 +151,7 @@ func ipcSetOperation(device *Device, socket *bufio.ReadWriter) *IPCError { err = updateUDPConn(device) if err != nil { logError.Println("Failed to set listen_port:", err) - return &IPCError{Code: ipcErrorIO} + return &IPCError{Code: ipcErrorPortInUse} } // TODO: Clear source address of all peers -- cgit v1.2.3