Added timeout to read failure in rdpControlConn to avoid spinning on error.

This commit is contained in:
jdl
2026-06-13 09:07:03 +02:00
parent f3d8a9ff75
commit a730211167
2 changed files with 5 additions and 1 deletions

View File

@@ -175,7 +175,7 @@ func nlAttr(attrType uint16, data []byte) []byte {
func ioctlSetAddr(name string, ip net.IP, prefixLen int) error {
if ip.To4() == nil {
return errors.New("attempted to set nil IP on interface")
return errors.New("attempted to set non-IPv4 address on interface")
}
fd, err := unix.Socket(unix.AF_INET, unix.SOCK_DGRAM, unix.IPPROTO_IP)