Fixed message header length in conn_linux

This commit is contained in:
Mathias Hall-Andersen
2017-10-27 10:43:37 +02:00
parent fd6f2e1f55
commit 0485c34c8e
6 changed files with 54 additions and 26 deletions

View File

@@ -135,7 +135,7 @@ func ipcSetOperation(device *Device, socket *bufio.ReadWriter) *IPCError {
case "listen_port":
port, err := strconv.ParseUint(value, 10, 16)
if err != nil {
logError.Println("Failed to set listen_port:", err)
logError.Println("Failed to parse listen_port:", err)
return &IPCError{Code: ipcErrorInvalid}
}
device.net.port = uint16(port)