Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/smanonr..../opt/alt/ruby31/share/ruby
File: resolv.rb
# frozen_string_literal: true
[0] Fix | Delete
[1] Fix | Delete
require 'socket'
[2] Fix | Delete
require 'timeout'
[3] Fix | Delete
require 'io/wait'
[4] Fix | Delete
[5] Fix | Delete
begin
[6] Fix | Delete
require 'securerandom'
[7] Fix | Delete
rescue LoadError
[8] Fix | Delete
end
[9] Fix | Delete
[10] Fix | Delete
# Resolv is a thread-aware DNS resolver library written in Ruby. Resolv can
[11] Fix | Delete
# handle multiple DNS requests concurrently without blocking the entire Ruby
[12] Fix | Delete
# interpreter.
[13] Fix | Delete
#
[14] Fix | Delete
# See also resolv-replace.rb to replace the libc resolver with Resolv.
[15] Fix | Delete
#
[16] Fix | Delete
# Resolv can look up various DNS resources using the DNS module directly.
[17] Fix | Delete
#
[18] Fix | Delete
# Examples:
[19] Fix | Delete
#
[20] Fix | Delete
# p Resolv.getaddress "www.ruby-lang.org"
[21] Fix | Delete
# p Resolv.getname "210.251.121.214"
[22] Fix | Delete
#
[23] Fix | Delete
# Resolv::DNS.open do |dns|
[24] Fix | Delete
# ress = dns.getresources "www.ruby-lang.org", Resolv::DNS::Resource::IN::A
[25] Fix | Delete
# p ress.map(&:address)
[26] Fix | Delete
# ress = dns.getresources "ruby-lang.org", Resolv::DNS::Resource::IN::MX
[27] Fix | Delete
# p ress.map { |r| [r.exchange.to_s, r.preference] }
[28] Fix | Delete
# end
[29] Fix | Delete
#
[30] Fix | Delete
#
[31] Fix | Delete
# == Bugs
[32] Fix | Delete
#
[33] Fix | Delete
# * NIS is not supported.
[34] Fix | Delete
# * /etc/nsswitch.conf is not supported.
[35] Fix | Delete
[36] Fix | Delete
class Resolv
[37] Fix | Delete
[38] Fix | Delete
##
[39] Fix | Delete
# Looks up the first IP address for +name+.
[40] Fix | Delete
[41] Fix | Delete
def self.getaddress(name)
[42] Fix | Delete
DefaultResolver.getaddress(name)
[43] Fix | Delete
end
[44] Fix | Delete
[45] Fix | Delete
##
[46] Fix | Delete
# Looks up all IP address for +name+.
[47] Fix | Delete
[48] Fix | Delete
def self.getaddresses(name)
[49] Fix | Delete
DefaultResolver.getaddresses(name)
[50] Fix | Delete
end
[51] Fix | Delete
[52] Fix | Delete
##
[53] Fix | Delete
# Iterates over all IP addresses for +name+.
[54] Fix | Delete
[55] Fix | Delete
def self.each_address(name, &block)
[56] Fix | Delete
DefaultResolver.each_address(name, &block)
[57] Fix | Delete
end
[58] Fix | Delete
[59] Fix | Delete
##
[60] Fix | Delete
# Looks up the hostname of +address+.
[61] Fix | Delete
[62] Fix | Delete
def self.getname(address)
[63] Fix | Delete
DefaultResolver.getname(address)
[64] Fix | Delete
end
[65] Fix | Delete
[66] Fix | Delete
##
[67] Fix | Delete
# Looks up all hostnames for +address+.
[68] Fix | Delete
[69] Fix | Delete
def self.getnames(address)
[70] Fix | Delete
DefaultResolver.getnames(address)
[71] Fix | Delete
end
[72] Fix | Delete
[73] Fix | Delete
##
[74] Fix | Delete
# Iterates over all hostnames for +address+.
[75] Fix | Delete
[76] Fix | Delete
def self.each_name(address, &proc)
[77] Fix | Delete
DefaultResolver.each_name(address, &proc)
[78] Fix | Delete
end
[79] Fix | Delete
[80] Fix | Delete
##
[81] Fix | Delete
# Creates a new Resolv using +resolvers+.
[82] Fix | Delete
[83] Fix | Delete
def initialize(resolvers=[Hosts.new, DNS.new])
[84] Fix | Delete
@resolvers = resolvers
[85] Fix | Delete
end
[86] Fix | Delete
[87] Fix | Delete
##
[88] Fix | Delete
# Looks up the first IP address for +name+.
[89] Fix | Delete
[90] Fix | Delete
def getaddress(name)
[91] Fix | Delete
each_address(name) {|address| return address}
[92] Fix | Delete
raise ResolvError.new("no address for #{name}")
[93] Fix | Delete
end
[94] Fix | Delete
[95] Fix | Delete
##
[96] Fix | Delete
# Looks up all IP address for +name+.
[97] Fix | Delete
[98] Fix | Delete
def getaddresses(name)
[99] Fix | Delete
ret = []
[100] Fix | Delete
each_address(name) {|address| ret << address}
[101] Fix | Delete
return ret
[102] Fix | Delete
end
[103] Fix | Delete
[104] Fix | Delete
##
[105] Fix | Delete
# Iterates over all IP addresses for +name+.
[106] Fix | Delete
[107] Fix | Delete
def each_address(name)
[108] Fix | Delete
if AddressRegex =~ name
[109] Fix | Delete
yield name
[110] Fix | Delete
return
[111] Fix | Delete
end
[112] Fix | Delete
yielded = false
[113] Fix | Delete
@resolvers.each {|r|
[114] Fix | Delete
r.each_address(name) {|address|
[115] Fix | Delete
yield address.to_s
[116] Fix | Delete
yielded = true
[117] Fix | Delete
}
[118] Fix | Delete
return if yielded
[119] Fix | Delete
}
[120] Fix | Delete
end
[121] Fix | Delete
[122] Fix | Delete
##
[123] Fix | Delete
# Looks up the hostname of +address+.
[124] Fix | Delete
[125] Fix | Delete
def getname(address)
[126] Fix | Delete
each_name(address) {|name| return name}
[127] Fix | Delete
raise ResolvError.new("no name for #{address}")
[128] Fix | Delete
end
[129] Fix | Delete
[130] Fix | Delete
##
[131] Fix | Delete
# Looks up all hostnames for +address+.
[132] Fix | Delete
[133] Fix | Delete
def getnames(address)
[134] Fix | Delete
ret = []
[135] Fix | Delete
each_name(address) {|name| ret << name}
[136] Fix | Delete
return ret
[137] Fix | Delete
end
[138] Fix | Delete
[139] Fix | Delete
##
[140] Fix | Delete
# Iterates over all hostnames for +address+.
[141] Fix | Delete
[142] Fix | Delete
def each_name(address)
[143] Fix | Delete
yielded = false
[144] Fix | Delete
@resolvers.each {|r|
[145] Fix | Delete
r.each_name(address) {|name|
[146] Fix | Delete
yield name.to_s
[147] Fix | Delete
yielded = true
[148] Fix | Delete
}
[149] Fix | Delete
return if yielded
[150] Fix | Delete
}
[151] Fix | Delete
end
[152] Fix | Delete
[153] Fix | Delete
##
[154] Fix | Delete
# Indicates a failure to resolve a name or address.
[155] Fix | Delete
[156] Fix | Delete
class ResolvError < StandardError; end
[157] Fix | Delete
[158] Fix | Delete
##
[159] Fix | Delete
# Indicates a timeout resolving a name or address.
[160] Fix | Delete
[161] Fix | Delete
class ResolvTimeout < Timeout::Error; end
[162] Fix | Delete
[163] Fix | Delete
##
[164] Fix | Delete
# Resolv::Hosts is a hostname resolver that uses the system hosts file.
[165] Fix | Delete
[166] Fix | Delete
class Hosts
[167] Fix | Delete
if /mswin|mingw|cygwin/ =~ RUBY_PLATFORM and
[168] Fix | Delete
begin
[169] Fix | Delete
require 'win32/resolv'
[170] Fix | Delete
DefaultFileName = Win32::Resolv.get_hosts_path || IO::NULL
[171] Fix | Delete
rescue LoadError
[172] Fix | Delete
end
[173] Fix | Delete
end
[174] Fix | Delete
DefaultFileName ||= '/etc/hosts'
[175] Fix | Delete
[176] Fix | Delete
##
[177] Fix | Delete
# Creates a new Resolv::Hosts, using +filename+ for its data source.
[178] Fix | Delete
[179] Fix | Delete
def initialize(filename = DefaultFileName)
[180] Fix | Delete
@filename = filename
[181] Fix | Delete
@mutex = Thread::Mutex.new
[182] Fix | Delete
@initialized = nil
[183] Fix | Delete
end
[184] Fix | Delete
[185] Fix | Delete
def lazy_initialize # :nodoc:
[186] Fix | Delete
@mutex.synchronize {
[187] Fix | Delete
unless @initialized
[188] Fix | Delete
@name2addr = {}
[189] Fix | Delete
@addr2name = {}
[190] Fix | Delete
File.open(@filename, 'rb') {|f|
[191] Fix | Delete
f.each {|line|
[192] Fix | Delete
line.sub!(/#.*/, '')
[193] Fix | Delete
addr, hostname, *aliases = line.split(/\s+/)
[194] Fix | Delete
next unless addr
[195] Fix | Delete
@addr2name[addr] = [] unless @addr2name.include? addr
[196] Fix | Delete
@addr2name[addr] << hostname
[197] Fix | Delete
@addr2name[addr] += aliases
[198] Fix | Delete
@name2addr[hostname] = [] unless @name2addr.include? hostname
[199] Fix | Delete
@name2addr[hostname] << addr
[200] Fix | Delete
aliases.each {|n|
[201] Fix | Delete
@name2addr[n] = [] unless @name2addr.include? n
[202] Fix | Delete
@name2addr[n] << addr
[203] Fix | Delete
}
[204] Fix | Delete
}
[205] Fix | Delete
}
[206] Fix | Delete
@name2addr.each {|name, arr| arr.reverse!}
[207] Fix | Delete
@initialized = true
[208] Fix | Delete
end
[209] Fix | Delete
}
[210] Fix | Delete
self
[211] Fix | Delete
end
[212] Fix | Delete
[213] Fix | Delete
##
[214] Fix | Delete
# Gets the IP address of +name+ from the hosts file.
[215] Fix | Delete
[216] Fix | Delete
def getaddress(name)
[217] Fix | Delete
each_address(name) {|address| return address}
[218] Fix | Delete
raise ResolvError.new("#{@filename} has no name: #{name}")
[219] Fix | Delete
end
[220] Fix | Delete
[221] Fix | Delete
##
[222] Fix | Delete
# Gets all IP addresses for +name+ from the hosts file.
[223] Fix | Delete
[224] Fix | Delete
def getaddresses(name)
[225] Fix | Delete
ret = []
[226] Fix | Delete
each_address(name) {|address| ret << address}
[227] Fix | Delete
return ret
[228] Fix | Delete
end
[229] Fix | Delete
[230] Fix | Delete
##
[231] Fix | Delete
# Iterates over all IP addresses for +name+ retrieved from the hosts file.
[232] Fix | Delete
[233] Fix | Delete
def each_address(name, &proc)
[234] Fix | Delete
lazy_initialize
[235] Fix | Delete
@name2addr[name]&.each(&proc)
[236] Fix | Delete
end
[237] Fix | Delete
[238] Fix | Delete
##
[239] Fix | Delete
# Gets the hostname of +address+ from the hosts file.
[240] Fix | Delete
[241] Fix | Delete
def getname(address)
[242] Fix | Delete
each_name(address) {|name| return name}
[243] Fix | Delete
raise ResolvError.new("#{@filename} has no address: #{address}")
[244] Fix | Delete
end
[245] Fix | Delete
[246] Fix | Delete
##
[247] Fix | Delete
# Gets all hostnames for +address+ from the hosts file.
[248] Fix | Delete
[249] Fix | Delete
def getnames(address)
[250] Fix | Delete
ret = []
[251] Fix | Delete
each_name(address) {|name| ret << name}
[252] Fix | Delete
return ret
[253] Fix | Delete
end
[254] Fix | Delete
[255] Fix | Delete
##
[256] Fix | Delete
# Iterates over all hostnames for +address+ retrieved from the hosts file.
[257] Fix | Delete
[258] Fix | Delete
def each_name(address, &proc)
[259] Fix | Delete
lazy_initialize
[260] Fix | Delete
@addr2name[address]&.each(&proc)
[261] Fix | Delete
end
[262] Fix | Delete
end
[263] Fix | Delete
[264] Fix | Delete
##
[265] Fix | Delete
# Resolv::DNS is a DNS stub resolver.
[266] Fix | Delete
#
[267] Fix | Delete
# Information taken from the following places:
[268] Fix | Delete
#
[269] Fix | Delete
# * STD0013
[270] Fix | Delete
# * RFC 1035
[271] Fix | Delete
# * ftp://ftp.isi.edu/in-notes/iana/assignments/dns-parameters
[272] Fix | Delete
# * etc.
[273] Fix | Delete
[274] Fix | Delete
class DNS
[275] Fix | Delete
[276] Fix | Delete
##
[277] Fix | Delete
# Default DNS Port
[278] Fix | Delete
[279] Fix | Delete
Port = 53
[280] Fix | Delete
[281] Fix | Delete
##
[282] Fix | Delete
# Default DNS UDP packet size
[283] Fix | Delete
[284] Fix | Delete
UDPSize = 512
[285] Fix | Delete
[286] Fix | Delete
##
[287] Fix | Delete
# Creates a new DNS resolver. See Resolv::DNS.new for argument details.
[288] Fix | Delete
#
[289] Fix | Delete
# Yields the created DNS resolver to the block, if given, otherwise
[290] Fix | Delete
# returns it.
[291] Fix | Delete
[292] Fix | Delete
def self.open(*args)
[293] Fix | Delete
dns = new(*args)
[294] Fix | Delete
return dns unless block_given?
[295] Fix | Delete
begin
[296] Fix | Delete
yield dns
[297] Fix | Delete
ensure
[298] Fix | Delete
dns.close
[299] Fix | Delete
end
[300] Fix | Delete
end
[301] Fix | Delete
[302] Fix | Delete
##
[303] Fix | Delete
# Creates a new DNS resolver.
[304] Fix | Delete
#
[305] Fix | Delete
# +config_info+ can be:
[306] Fix | Delete
#
[307] Fix | Delete
# nil:: Uses /etc/resolv.conf.
[308] Fix | Delete
# String:: Path to a file using /etc/resolv.conf's format.
[309] Fix | Delete
# Hash:: Must contain :nameserver, :search and :ndots keys.
[310] Fix | Delete
# :nameserver_port can be used to specify port number of nameserver address.
[311] Fix | Delete
#
[312] Fix | Delete
# The value of :nameserver should be an address string or
[313] Fix | Delete
# an array of address strings.
[314] Fix | Delete
# - :nameserver => '8.8.8.8'
[315] Fix | Delete
# - :nameserver => ['8.8.8.8', '8.8.4.4']
[316] Fix | Delete
#
[317] Fix | Delete
# The value of :nameserver_port should be an array of
[318] Fix | Delete
# pair of nameserver address and port number.
[319] Fix | Delete
# - :nameserver_port => [['8.8.8.8', 53], ['8.8.4.4', 53]]
[320] Fix | Delete
#
[321] Fix | Delete
# Example:
[322] Fix | Delete
#
[323] Fix | Delete
# Resolv::DNS.new(:nameserver => ['210.251.121.21'],
[324] Fix | Delete
# :search => ['ruby-lang.org'],
[325] Fix | Delete
# :ndots => 1)
[326] Fix | Delete
[327] Fix | Delete
def initialize(config_info=nil)
[328] Fix | Delete
@mutex = Thread::Mutex.new
[329] Fix | Delete
@config = Config.new(config_info)
[330] Fix | Delete
@initialized = nil
[331] Fix | Delete
end
[332] Fix | Delete
[333] Fix | Delete
# Sets the resolver timeouts. This may be a single positive number
[334] Fix | Delete
# or an array of positive numbers representing timeouts in seconds.
[335] Fix | Delete
# If an array is specified, a DNS request will retry and wait for
[336] Fix | Delete
# each successive interval in the array until a successful response
[337] Fix | Delete
# is received. Specifying +nil+ reverts to the default timeouts:
[338] Fix | Delete
# [ 5, second = 5 * 2 / nameserver_count, 2 * second, 4 * second ]
[339] Fix | Delete
#
[340] Fix | Delete
# Example:
[341] Fix | Delete
#
[342] Fix | Delete
# dns.timeouts = 3
[343] Fix | Delete
#
[344] Fix | Delete
def timeouts=(values)
[345] Fix | Delete
@config.timeouts = values
[346] Fix | Delete
end
[347] Fix | Delete
[348] Fix | Delete
def lazy_initialize # :nodoc:
[349] Fix | Delete
@mutex.synchronize {
[350] Fix | Delete
unless @initialized
[351] Fix | Delete
@config.lazy_initialize
[352] Fix | Delete
@initialized = true
[353] Fix | Delete
end
[354] Fix | Delete
}
[355] Fix | Delete
self
[356] Fix | Delete
end
[357] Fix | Delete
[358] Fix | Delete
##
[359] Fix | Delete
# Closes the DNS resolver.
[360] Fix | Delete
[361] Fix | Delete
def close
[362] Fix | Delete
@mutex.synchronize {
[363] Fix | Delete
if @initialized
[364] Fix | Delete
@initialized = false
[365] Fix | Delete
end
[366] Fix | Delete
}
[367] Fix | Delete
end
[368] Fix | Delete
[369] Fix | Delete
##
[370] Fix | Delete
# Gets the IP address of +name+ from the DNS resolver.
[371] Fix | Delete
#
[372] Fix | Delete
# +name+ can be a Resolv::DNS::Name or a String. Retrieved address will
[373] Fix | Delete
# be a Resolv::IPv4 or Resolv::IPv6
[374] Fix | Delete
[375] Fix | Delete
def getaddress(name)
[376] Fix | Delete
each_address(name) {|address| return address}
[377] Fix | Delete
raise ResolvError.new("DNS result has no information for #{name}")
[378] Fix | Delete
end
[379] Fix | Delete
[380] Fix | Delete
##
[381] Fix | Delete
# Gets all IP addresses for +name+ from the DNS resolver.
[382] Fix | Delete
#
[383] Fix | Delete
# +name+ can be a Resolv::DNS::Name or a String. Retrieved addresses will
[384] Fix | Delete
# be a Resolv::IPv4 or Resolv::IPv6
[385] Fix | Delete
[386] Fix | Delete
def getaddresses(name)
[387] Fix | Delete
ret = []
[388] Fix | Delete
each_address(name) {|address| ret << address}
[389] Fix | Delete
return ret
[390] Fix | Delete
end
[391] Fix | Delete
[392] Fix | Delete
##
[393] Fix | Delete
# Iterates over all IP addresses for +name+ retrieved from the DNS
[394] Fix | Delete
# resolver.
[395] Fix | Delete
#
[396] Fix | Delete
# +name+ can be a Resolv::DNS::Name or a String. Retrieved addresses will
[397] Fix | Delete
# be a Resolv::IPv4 or Resolv::IPv6
[398] Fix | Delete
[399] Fix | Delete
def each_address(name)
[400] Fix | Delete
each_resource(name, Resource::IN::A) {|resource| yield resource.address}
[401] Fix | Delete
if use_ipv6?
[402] Fix | Delete
each_resource(name, Resource::IN::AAAA) {|resource| yield resource.address}
[403] Fix | Delete
end
[404] Fix | Delete
end
[405] Fix | Delete
[406] Fix | Delete
def use_ipv6? # :nodoc:
[407] Fix | Delete
begin
[408] Fix | Delete
list = Socket.ip_address_list
[409] Fix | Delete
rescue NotImplementedError
[410] Fix | Delete
return true
[411] Fix | Delete
end
[412] Fix | Delete
list.any? {|a| a.ipv6? && !a.ipv6_loopback? && !a.ipv6_linklocal? }
[413] Fix | Delete
end
[414] Fix | Delete
private :use_ipv6?
[415] Fix | Delete
[416] Fix | Delete
##
[417] Fix | Delete
# Gets the hostname for +address+ from the DNS resolver.
[418] Fix | Delete
#
[419] Fix | Delete
# +address+ must be a Resolv::IPv4, Resolv::IPv6 or a String. Retrieved
[420] Fix | Delete
# name will be a Resolv::DNS::Name.
[421] Fix | Delete
[422] Fix | Delete
def getname(address)
[423] Fix | Delete
each_name(address) {|name| return name}
[424] Fix | Delete
raise ResolvError.new("DNS result has no information for #{address}")
[425] Fix | Delete
end
[426] Fix | Delete
[427] Fix | Delete
##
[428] Fix | Delete
# Gets all hostnames for +address+ from the DNS resolver.
[429] Fix | Delete
#
[430] Fix | Delete
# +address+ must be a Resolv::IPv4, Resolv::IPv6 or a String. Retrieved
[431] Fix | Delete
# names will be Resolv::DNS::Name instances.
[432] Fix | Delete
[433] Fix | Delete
def getnames(address)
[434] Fix | Delete
ret = []
[435] Fix | Delete
each_name(address) {|name| ret << name}
[436] Fix | Delete
return ret
[437] Fix | Delete
end
[438] Fix | Delete
[439] Fix | Delete
##
[440] Fix | Delete
# Iterates over all hostnames for +address+ retrieved from the DNS
[441] Fix | Delete
# resolver.
[442] Fix | Delete
#
[443] Fix | Delete
# +address+ must be a Resolv::IPv4, Resolv::IPv6 or a String. Retrieved
[444] Fix | Delete
# names will be Resolv::DNS::Name instances.
[445] Fix | Delete
[446] Fix | Delete
def each_name(address)
[447] Fix | Delete
case address
[448] Fix | Delete
when Name
[449] Fix | Delete
ptr = address
[450] Fix | Delete
when IPv4, IPv6
[451] Fix | Delete
ptr = address.to_name
[452] Fix | Delete
when IPv4::Regex
[453] Fix | Delete
ptr = IPv4.create(address).to_name
[454] Fix | Delete
when IPv6::Regex
[455] Fix | Delete
ptr = IPv6.create(address).to_name
[456] Fix | Delete
else
[457] Fix | Delete
raise ResolvError.new("cannot interpret as address: #{address}")
[458] Fix | Delete
end
[459] Fix | Delete
each_resource(ptr, Resource::IN::PTR) {|resource| yield resource.name}
[460] Fix | Delete
end
[461] Fix | Delete
[462] Fix | Delete
##
[463] Fix | Delete
# Look up the +typeclass+ DNS resource of +name+.
[464] Fix | Delete
#
[465] Fix | Delete
# +name+ must be a Resolv::DNS::Name or a String.
[466] Fix | Delete
#
[467] Fix | Delete
# +typeclass+ should be one of the following:
[468] Fix | Delete
#
[469] Fix | Delete
# * Resolv::DNS::Resource::IN::A
[470] Fix | Delete
# * Resolv::DNS::Resource::IN::AAAA
[471] Fix | Delete
# * Resolv::DNS::Resource::IN::ANY
[472] Fix | Delete
# * Resolv::DNS::Resource::IN::CNAME
[473] Fix | Delete
# * Resolv::DNS::Resource::IN::HINFO
[474] Fix | Delete
# * Resolv::DNS::Resource::IN::MINFO
[475] Fix | Delete
# * Resolv::DNS::Resource::IN::MX
[476] Fix | Delete
# * Resolv::DNS::Resource::IN::NS
[477] Fix | Delete
# * Resolv::DNS::Resource::IN::PTR
[478] Fix | Delete
# * Resolv::DNS::Resource::IN::SOA
[479] Fix | Delete
# * Resolv::DNS::Resource::IN::TXT
[480] Fix | Delete
# * Resolv::DNS::Resource::IN::WKS
[481] Fix | Delete
#
[482] Fix | Delete
# Returned resource is represented as a Resolv::DNS::Resource instance,
[483] Fix | Delete
# i.e. Resolv::DNS::Resource::IN::A.
[484] Fix | Delete
[485] Fix | Delete
def getresource(name, typeclass)
[486] Fix | Delete
each_resource(name, typeclass) {|resource| return resource}
[487] Fix | Delete
raise ResolvError.new("DNS result has no information for #{name}")
[488] Fix | Delete
end
[489] Fix | Delete
[490] Fix | Delete
##
[491] Fix | Delete
# Looks up all +typeclass+ DNS resources for +name+. See #getresource for
[492] Fix | Delete
# argument details.
[493] Fix | Delete
[494] Fix | Delete
def getresources(name, typeclass)
[495] Fix | Delete
ret = []
[496] Fix | Delete
each_resource(name, typeclass) {|resource| ret << resource}
[497] Fix | Delete
return ret
[498] Fix | Delete
end
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function