revert r5969 which breaks behind nat
git-svn-id: file:///home/svn/framework3/trunk@5970 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
f1e71237e4
commit
fec1533b50
|
@ -59,7 +59,7 @@ module ReverseTcp
|
|||
|
||||
# Switch to IPv6 ANY address if the LHOST is also IPv6
|
||||
addr = Rex::Socket.resolv_nbo(datastore['LHOST'])
|
||||
lsnr = Rex::Socket.addr_ntoa(addr)
|
||||
lsnr = (addr.length == 4) ? "0.0.0.0" : "::0"
|
||||
|
||||
self.listener_sock = Rex::Socket::TcpServer.create(
|
||||
'LocalHost' => lsnr,
|
||||
|
|
Loading…
Reference in New Issue