tor-control 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tor-control.rb +6 -5
- data/lib/tor-control/version.rb +1 -1
- metadata +2 -2
data/lib/tor-control.rb
CHANGED
@@ -34,11 +34,11 @@ module TorControl
|
|
34
34
|
|
35
35
|
def connect
|
36
36
|
return @connection if @connection
|
37
|
-
|
37
|
+
begin
|
38
38
|
@connection = TCPSocket.new(@host, @control_port)
|
39
|
-
|
40
|
-
|
41
|
-
|
39
|
+
rescue
|
40
|
+
logger.error "TorControl: Failed to connection to tor service"
|
41
|
+
end
|
42
42
|
end
|
43
43
|
|
44
44
|
def signal_new_identity
|
@@ -60,7 +60,8 @@ module TorControl
|
|
60
60
|
def close
|
61
61
|
check_connection
|
62
62
|
send_line "QUIT"
|
63
|
-
|
63
|
+
@connection = false
|
64
|
+
return ! @connection
|
64
65
|
end
|
65
66
|
|
66
67
|
private
|
data/lib/tor-control/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tor-control
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|