mirror of
https://git.zx2c4.com/wireguard-go
synced 2025-10-06 00:57:23 +08:00
device: correct IPC error number for I/O errors
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
@@ -168,7 +168,10 @@ func (device *Device) IpcSetOperation(r io.Reader) (err error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return scanner.Err()
|
if err := scanner.Err(); err != nil {
|
||||||
|
return ipcErrorf(ipc.IpcErrorIO, "failed to read input: %w", err)
|
||||||
|
}
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (device *Device) handleDeviceLine(key, value string) error {
|
func (device *Device) handleDeviceLine(key, value string) error {
|
||||||
|
Reference in New Issue
Block a user