Files
metasploit-gs/lib/msf/core/opt_address_routable.rb
T
2023-06-13 10:29:15 -05:00

18 lines
297 B
Ruby

# -*- coding: binary -*-
module Msf
###
#
# Routable network address option.
#
###
class OptAddressRoutable < OptAddress
def valid?(value, check_empty: true)
return false if Rex::Socket.is_ip_addr?(value) && Rex::Socket.addr_atoi(value) == 0
super
end
end
end