dns_one 0.5.1 → 0.5.2
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 +2 -6
- 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: f9206825fe1eb6344f4cd249a168c07679cc69b7
|
4
|
+
data.tar.gz: a964aae110849dc8c8a24b47f5a3150a64420177
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abadb5a25fc5914b895084e87df22d704a7e12e77121a2e734ccc1384b38e3e10f280896691da7b6e0b2781c545b7138353b8c3044690acc6a03249b1b508ddd
|
7
|
+
data.tar.gz: a2912743e8eb8b131a65a2742928cca9765946462090ed068ce43213eda91a2208c92a48646a61ca54263e0a7ec5d1450c6939e4330ad873945b08424b3b652c
|
data/lib/dns_one/server.rb
CHANGED
@@ -21,7 +21,6 @@ module DnsOne; class Server
|
|
21
21
|
if conf[:log_result_socket]
|
22
22
|
@log_result = {}
|
23
23
|
@log_result_mutex = Mutex.new
|
24
|
-
launch_log_result_socket
|
25
24
|
end
|
26
25
|
end
|
27
26
|
|
@@ -32,6 +31,7 @@ module DnsOne; class Server
|
|
32
31
|
if conf[:log_result_socket]
|
33
32
|
log_result = @log_result
|
34
33
|
log_result_mutex = @log_result_mutex
|
34
|
+
launch_log_result_socket
|
35
35
|
end
|
36
36
|
|
37
37
|
RubyDNS::run_server(listen: dns_daemon_interfaces, logger: Log.ruby_dns_logger) do
|
@@ -129,12 +129,8 @@ module DnsOne; class Server
|
|
129
129
|
log_result_mutex = @log_result_mutex
|
130
130
|
conf = @conf
|
131
131
|
|
132
|
-
# if RExec.current_user == 'root'
|
133
|
-
# run_as = conf[:run_as] || DEFAULT_RUN_AS
|
134
|
-
# RExec.change_user run_as
|
135
|
-
# end
|
136
|
-
|
137
132
|
sock = Thread.new do
|
133
|
+
sleep 1
|
138
134
|
begin
|
139
135
|
Socket.unix_server_loop(conf[:log_result_socket_file] || DEFAULT_LOG_RESULT_SOCKET_FILE) do |sock, addr|
|
140
136
|
Thread.new do
|
data/lib/dns_one/version.rb
CHANGED