revert r5969 which breaks behind nat

git-svn-id: file:///home/svn/framework3/trunk@5970 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2008-11-21 02:01:43 +00:00
parent f1e71237e4
commit fec1533b50
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ module ReverseTcp
# Switch to IPv6 ANY address if the LHOST is also IPv6 # Switch to IPv6 ANY address if the LHOST is also IPv6
addr = Rex::Socket.resolv_nbo(datastore['LHOST']) 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( self.listener_sock = Rex::Socket::TcpServer.create(
'LocalHost' => lsnr, 'LocalHost' => lsnr,