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

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

No files matched your search

+1 -1
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)