dns_one 0.4.42 → 0.4.43
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dns_one/server.rb +1 -1
- data/lib/dns_one/util.rb +2 -1
- data/lib/dns_one/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5fbfb69c969d6f50af97241ec152d36796aee92
|
4
|
+
data.tar.gz: eeff25e403352b555901371a34ff8662a87cbf74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0188cba43e02c3811a9b9a23f4530d2518a60648588880fb495bb432a6af57e79e59cc8e41bd5869a332eddec7740ab2855f9bc0a56c4f2c62d4dc7c1106185b'
|
7
|
+
data.tar.gz: 7ce9694ebae316585307d535c1ed39ec84ff7011160af6528a566cc68428807cadc3990b143244d212e30d2550044af393d57b856c645bca318893c365522a97
|
data/lib/dns_one/server.rb
CHANGED
@@ -62,7 +62,7 @@ module DnsOne; class Server
|
|
62
62
|
end
|
63
63
|
|
64
64
|
stat.save rcode, t.resource_class, from_cache
|
65
|
-
Util.log_result ip_address, domain_name, t.resource_class, rcode, resp_log
|
65
|
+
Util.log_result ip_address, domain_name, t.resource_class, rcode, resp_log, from_cache
|
66
66
|
|
67
67
|
raise e if e
|
68
68
|
end
|
data/lib/dns_one/util.rb
CHANGED
@@ -30,7 +30,7 @@ module DnsOne; class Util; class << self
|
|
30
30
|
constant.to_s.split('::').last
|
31
31
|
end
|
32
32
|
|
33
|
-
def log_result ip_address, domain_name, res_class, rcode, resp_log
|
33
|
+
def log_result ip_address, domain_name, res_class, rcode, resp_log, from_cache
|
34
34
|
fields = []
|
35
35
|
|
36
36
|
fields << domain_name
|
@@ -42,6 +42,7 @@ module DnsOne; class Util; class << self
|
|
42
42
|
[rec.val].flatten.join(',')
|
43
43
|
}.join(';')
|
44
44
|
fields << ip_address
|
45
|
+
fields << (from_cache ? '1' : '0')
|
45
46
|
|
46
47
|
fields.map!{|v| v.blank? ? '-' : v}
|
47
48
|
|
data/lib/dns_one/version.rb
CHANGED