doh_client 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39fc3cbc3ac6a57ae2bdef218ed12d1078903713622b1f333e60fe0c3ea15f0b
4
- data.tar.gz: 73b7f165fc5bdf37ec4ebc1fb55bda75948b03596176f6e383c4f4dbad0b25b0
3
+ metadata.gz: acfbac85a8cd2afab9b179a9e026eced2f7af92cd193d559c1b3321e860348c8
4
+ data.tar.gz: 1ccbec4bc38a37546b51bf2f23444e726b49aa174e18aa3c205620e5ed1b0df7
5
5
  SHA512:
6
- metadata.gz: f2720b92c65401f621aa41a30694e876c19e4b2427c5744534581418551cadaaa93c7a52a02e4a6111e915fb60cfb37c86fb3175f99c6be385b44b62d5c58c35
7
- data.tar.gz: 9a84d7da0f96a247dff2d1d9d4cf7be2e060807e43cadfe9840656d2c6f4d62dd5f0cc02b860e0a5bd919d93b76ce83e14af3fac6eea4124d5dcd6841151fa4b
6
+ metadata.gz: 0a090878e7a7605945e5e2fef7a780d61669176ddb2a102bd5aa8a5d95941a86342565d1818a1567f9ba6912665d3dbc8bfcb93cee524aca47d5504ba90c79bb
7
+ data.tar.gz: 53046218f014d59499266e6c5ab80f78e4908de2447b852572572b485c14b336e08d200698ec13ab04992b6b6903cae782a6e89f24268b9fb646645b5b91afc8
@@ -5,9 +5,9 @@ require 'async/dns'
5
5
  module DoHClient
6
6
  class Server < Async::DNS::Server
7
7
  attr_reader :client
8
- def initialize(resolver)
9
- super
10
- @client = resolver == "cloudflare" ? DoHClient::Client::Cloudflare : DoHClient::Client::Google
8
+ def initialize(endpoints, resolver = DoHClient::Client::Google)
9
+ super(endpoints)
10
+ @client = resolver
11
11
  end
12
12
 
13
13
  def process(name, resource_class, transaction)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DoHClient
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doh_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manabu Niseki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-26 00:00:00.000000000 Z
11
+ date: 2018-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-rspec