Merge pull request #1 from jvennix-r7/merge-snmp-bsd-fix

Use the SNMP fix from master.
bug/bundler_fix
midnitesnake 2014-10-25 08:21:51 +01:00
commit e5347b4bdb
1 changed files with 1 additions and 5 deletions

View File

@ -63,11 +63,8 @@ class RexUDPTransport
rescue NoMethodError rescue NoMethodError
@socket.send(data, 0, host, port) @socket.send(data, 0, host, port)
rescue ::Errno::EISCONN rescue ::Errno::EISCONN
@socket.close @socket.write(data)
@socket = UDPSocket.open
@socket.send(data,0,host,port)
end end
end end
def recv(max_bytes) def recv(max_bytes)
@ -719,4 +716,3 @@ class TrapListener
end end
end end