Land #7536, fix get_ipv4_addr(@interface) usage

bug/bundler_fix
Brent Cook 2016-11-21 01:09:05 -06:00
commit 0504cae21f
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
1 changed files with 1 additions and 1 deletions

View File

@ -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)