Check nil for SRVHOST option

bug/bundler_fix
wchen-r7 2015-07-14 14:16:49 -05:00
parent 8efb4df8af
commit 61d49f29e8
1 changed files with 1 additions and 1 deletions

View File

@ -659,7 +659,7 @@ module Msf
host = datastore['URIHOST']
elsif cli
host = cli.peerhost
elsif datastore['SRVHOST'] != '0.0.0.0'
elsif datastore['SRVHOST'] && datastore['SRVHOST'] != '0.0.0.0'
host = datastore['SRVHOST']
else
host = Rex::Socket.source_address