Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Implicit use of DEFAULT_WHOIS_PORT

  • Loading branch information...
commit 934982e317ca9c8c11e61e1e3cdc418f07f5a4f6 1 parent 6eda0c0
@weppos authored
View
4 lib/whois/server/adapters/afilias.rb
@@ -31,11 +31,11 @@ class Afilias < Base
# @return [void]
#
def request(string)
- response = query_the_socket(string, host, DEFAULT_WHOIS_PORT)
+ response = query_the_socket(string, host)
buffer_append response, host
if endpoint = extract_referral(response)
- response = query_the_socket(string, endpoint, DEFAULT_WHOIS_PORT)
+ response = query_the_socket(string, endpoint)
buffer_append response, endpoint
end
end
View
4 lib/whois/server/adapters/pir.rb
@@ -31,11 +31,11 @@ class Pir < Base
# @return [void]
#
def request(string)
- response = query_the_socket("FULL #{string}", host, DEFAULT_WHOIS_PORT)
+ response = query_the_socket("FULL #{string}", host)
buffer_append response, host
if endpoint = extract_referral(response)
- response = query_the_socket(string, endpoint, DEFAULT_WHOIS_PORT)
+ response = query_the_socket(string, endpoint)
buffer_append response, endpoint
end
end
View
4 lib/whois/server/adapters/verisign.rb
@@ -34,11 +34,11 @@ class Verisign < Base
# @return [void]
#
def request(string)
- response = query_the_socket("=#{string}", host, DEFAULT_WHOIS_PORT)
+ response = query_the_socket("=#{string}", host)
buffer_append response, host
if endpoint = extract_referral(response)
- response = query_the_socket(string, endpoint, DEFAULT_WHOIS_PORT)
+ response = query_the_socket(string, endpoint)
buffer_append response, endpoint
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.