Added timeout to read failure in rdpControlConn to avoid spinning on error.
This commit is contained in:
@@ -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