Land #3935 - Fix SNMP scanners on OS X/FreeBSD
commit
6f50ef581c
|
@ -62,8 +62,9 @@ class RexUDPTransport
|
|||
@socket.sendto(data, host, port, flags)
|
||||
rescue NoMethodError
|
||||
@socket.send(data, 0, host, port)
|
||||
rescue ::Errno::EISCONN
|
||||
@socket.write(data)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
def recv(max_bytes)
|
||||
|
|
Loading…
Reference in New Issue