zokor 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zokor/proxy_connection.rb +9 -1
- data/lib/zokor/version.rb +1 -1
- data/zokor.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a142505b12aff3f4cd794dfe6bc4c660f392ea9
|
4
|
+
data.tar.gz: 9f777026ab6bd2e9249ae139382773a37e9a78be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6ea518ffc62cbf1a1f869d977a4a8f07918a528f407f7c318df828427b6d934be5b6b19d996b3cfd96d85225ec021650a8be59a13521f22fc60db8a5557a115
|
7
|
+
data.tar.gz: 9b114533b0e15b4d86d9ad214588daa4fa797ca89210371919ed89e6b32226ec95399046823f24b5212ca24015fabaf890d39b56c830784757a521b5b6cfb984
|
@@ -143,7 +143,15 @@ module Zokor
|
|
143
143
|
label = "#{@remote_host}:#{@remote_port}"
|
144
144
|
if @proxy_url
|
145
145
|
log.info("Connecting to #{label} through proxy #{@proxy_url}")
|
146
|
-
|
146
|
+
|
147
|
+
popts = {}
|
148
|
+
popts[:user_agent] = ENV['HTTP_USER_AGENT'] if ENV['HTTP_USER_AGENT']
|
149
|
+
|
150
|
+
if popts[:user_agent]
|
151
|
+
log.debug('Passing User-Agent: ' + popts[:user_agent].inspect)
|
152
|
+
end
|
153
|
+
|
154
|
+
@proxy = Proxifier::Proxy(@proxy_url, popts)
|
147
155
|
tcp_socket = @proxy.open(@remote_host, @remote_port)
|
148
156
|
else
|
149
157
|
log.info("Connecting to #{label}")
|
data/lib/zokor/version.rb
CHANGED
data/zokor.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
27
27
|
spec.require_paths = ['lib']
|
28
28
|
|
29
|
-
spec.add_dependency 'proxifier', '~> 1.0'
|
29
|
+
spec.add_dependency 'proxifier-fork', '~> 1.0.4'
|
30
30
|
|
31
31
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
32
32
|
spec.add_development_dependency 'pry'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zokor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Brody
|
@@ -11,19 +11,19 @@ cert_chain: []
|
|
11
11
|
date: 2016-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: proxifier
|
14
|
+
name: proxifier-fork
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.0.4
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.0.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|