Check nil for SRVHOST option
parent
8efb4df8af
commit
61d49f29e8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue