# File lib/dnsruby/resolver.rb, line 642 def add_src_port(p) if Resolver.check_port(p, @src_port) a = Resolver.get_ports_from(p) a.each do |x| if (@src_port.length > 0) && (x == 0) log_and_raise("src_port of 0 only allowed as only src_port value (currently #{@src_port.length} values", ArgumentError) end @src_port.push(x) end end update end