Fixed message header length in conn_linux
This commit is contained in:
parent
fd6f2e1f55
commit
0485c34c8e
6 changed files with 54 additions and 26 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue