summaryrefslogtreecommitdiffhomepage
path: root/src/uapi.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-09-26 15:15:27 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-09-26 15:15:27 +0200
commit6fa65bded45957434db08e5d33fe82a04af73a59 (patch)
tree2f860cdea80d992da97625290757f7c6396131c1 /src/uapi.go
parent012e7b9d3316023e6ea891f9fe72f15d1db6668a (diff)
Clean up error handling of listen port
Diffstat (limited to 'src/uapi.go')
-rw-r--r--src/uapi.go2
1 files changed, 1 insertions, 1 deletions
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