Skip to content

Commit ec0c946

Browse files
committed
Print the resolved address
1 parent 9e8cd3b commit ec0c946

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test.patch

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
diff --git a/lib/jekyll-github-metadata/client.rb b/lib/jekyll-github-metadata/client.rb
2-
index f655152..aeea981 100644
2+
index f655152..0a368e5 100644
33
--- a/lib/jekyll-github-metadata/client.rb
44
+++ b/lib/jekyll-github-metadata/client.rb
5-
@@ -119,6 +119,9 @@ module Jekyll
5+
@@ -114,11 +114,14 @@ module Jekyll
6+
begin
7+
Resolv::DNS.open do |dns|
8+
dns.timeouts = 2
9+
- dns.getaddress("api.github.com")
10+
+ GitHubMetadata.log :warn, dns.getaddress("api.github.com").to_s()
11+
end
612
@internet_connected = true
713
rescue Resolv::ResolvError
814
@internet_connected = false

0 commit comments

Comments
 (0)