Added timeout to read failure in rdpControlConn to avoid spinning on error.
This commit is contained in:
1 parent
f3d8a9ff75
commit
a730211167
2 files changed
+5
-1
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user