smart_proxy_dns_dnsmasq 0.4 → 0.5
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb1aac2f3d95b7d541050735d2459b4c32a95331
|
4
|
+
data.tar.gz: f4fb0328e7cbf48f03d6ea70533e92c5e237a705
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad7db5669dd48e3d3826597d45048783766d82d5826b2c17366bc65e15bd0885063346557a910da33b500d8456760fb71b41ba6f20d40337947f621b62262810
|
7
|
+
data.tar.gz: 2e3bc42987949e4fce223869f7e286fdc94a227d64f9326bd0a49dd2d6a6d3d316f1f76ba2d5cdb4c952431ed6f84257969ddc93e4372e19bbe6a2016272c27c
|
@@ -39,7 +39,7 @@ module Proxy::Dns::Dnsmasq
|
|
39
39
|
when 'A', 'AAAA'
|
40
40
|
e = configuration.find { |entry| entry.is_a?(AddressEntry) && entry.fqdn.include?(fqdn) }
|
41
41
|
when 'PTR'
|
42
|
-
e = configuration.find { |entry| entry.is_a?(PTREntry) && entry.
|
42
|
+
e = configuration.find { |entry| entry.is_a?(PTREntry) && entry.ip == ip }
|
43
43
|
end
|
44
44
|
|
45
45
|
configuration.delete e
|
@@ -95,8 +95,9 @@ module Proxy::Dns::Dnsmasq
|
|
95
95
|
data = value.split(',')
|
96
96
|
|
97
97
|
entry = PTREntry.new
|
98
|
-
entry.ip = data
|
99
|
-
entry.fqdn = data
|
98
|
+
entry.ip = data.shift
|
99
|
+
entry.fqdn = data.shift
|
100
|
+
|
100
101
|
# TODO: Handle these properly
|
101
102
|
# when 'host-record'
|
102
103
|
# data = value.split(',')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smart_proxy_dns_dnsmasq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.5'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Olofsson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|