Skip to content

Commit

Permalink
Update Examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
636f7374 committed Dec 16, 2020
1 parent dee09af commit 2e9de2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/tls_resolve_proc.cr
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ servers << Tuple.new Socket::IPAddress.new("1.1.1.1", 853_i32), Durian::Protocol
resolver = Durian::Resolver.new servers
resolver.record_cache = Durian::Cache::Record.new

resolver.resolve "google.com", [Durian::RecordFlag::A, Durian::RecordFlag::AAAA] do |response|
STDOUT.puts [:Google, Time.utc, response]
end

resolver.resolve "twitter.com", Durian::RecordFlag::SOA do |response|
STDOUT.puts [:Twitter, Time.utc, response]
end
Expand Down

0 comments on commit 2e9de2d

Please sign in to comment.