Land #6791, fix 127.0.0.1 regex for autoroute post module

bug/bundler_fix
wchen-r7 2016-04-20 13:28:20 -05:00
commit f32bae8cf3
No known key found for this signature in database
GPG Key ID: 2384DB4EF06F730B
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ class MetasploitModule < Msf::Post
# @return [true] If good to add
# @return [false] If not
def is_routable?(subnet, netmask)
if subnet =~ /^224\.|127\./
if subnet =~ /^224\.|^127\./
return false
elsif subnet == '0.0.0.0'
return false