Land #7536, fix get_ipv4_addr(@interface) usage
commit
0504cae21f
|
@ -79,7 +79,7 @@ class MetasploitModule < Msf::Auxiliary
|
|||
raise RuntimeError ,'Source MAC is not in correct format' unless is_mac?(@smac)
|
||||
|
||||
@sip = datastore['LOCALSIP']
|
||||
@sip ||= get_ipv4_addr(@interface)[0] if @netifaces
|
||||
@sip ||= get_ipv4_addr(@interface) if @netifaces
|
||||
raise "LOCALSIP is not defined and can not be guessed" unless @sip
|
||||
raise "LOCALSIP is not an ipv4 address" unless Rex::Socket.is_ipv4?(@sip)
|
||||
|
||||
|
|
Loading…
Reference in New Issue