Land #3935 - Fix SNMP scanners on OS X/FreeBSD

bug/bundler_fix
sinn3r 2014-10-02 16:38:36 -05:00
commit 6f50ef581c
No known key found for this signature in database
GPG Key ID: 2384DB4EF06F730B
1 changed files with 2 additions and 1 deletions

View File

@ -62,8 +62,9 @@ class RexUDPTransport
@socket.sendto(data, host, port, flags) @socket.sendto(data, host, port, flags)
rescue NoMethodError rescue NoMethodError
@socket.send(data, 0, host, port) @socket.send(data, 0, host, port)
rescue ::Errno::EISCONN
@socket.write(data)
end end
end end
def recv(max_bytes) def recv(max_bytes)