rtunnel 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Manifest.txt +4 -0
- data/README.txt +1 -0
- data/bin/rtunnel_client +2 -23
- data/bin/rtunnel_server +2 -19
- data/lib/core.rb +1 -1
- data/lib/rtunnel_client_cmd.rb +26 -0
- data/lib/rtunnel_server_cmd.rb +22 -0
- data/rtunnel_client.rb +3 -0
- data/rtunnel_server.rb +3 -0
- metadata +5 -1
data/Manifest.txt
CHANGED
data/README.txt
CHANGED
data/bin/rtunnel_client
CHANGED
@@ -1,24 +1,3 @@
|
|
1
|
-
|
1
|
+
#!/usr/bin/ruby
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
$debug = true
|
6
|
-
|
7
|
-
control_address = tunnel_from_address = tunnel_to_address = remote_listen_address = nil
|
8
|
-
|
9
|
-
(opts = OptionParser.new do |o|
|
10
|
-
o.on("-c", "--control-address ADDRESS") { |a| control_address = a }
|
11
|
-
o.on("-f", "--remote-listen-port ADDRESS") { |a| remote_listen_address = a }
|
12
|
-
o.on("-p", "--tunnel-port ADDRESS") { |a| tunnel_port = a }
|
13
|
-
o.on("-t", "--tunnel-to ADDRESS") { |a| tunnel_to_address = a }
|
14
|
-
end).parse! rescue (puts opts; exit)
|
15
|
-
|
16
|
-
(puts opts; exit) if [control_address, remote_listen_address, tunnel_to_address].include? nil
|
17
|
-
|
18
|
-
client = RTunnel::Client.new(
|
19
|
-
:control_address => control_address,
|
20
|
-
:remote_listen_address => remote_listen_address,
|
21
|
-
:tunnel_to_address => tunnel_to_address
|
22
|
-
)
|
23
|
-
client.start
|
24
|
-
client.join
|
3
|
+
load 'rtunnel_client_cmd.rb'
|
data/bin/rtunnel_server
CHANGED
@@ -1,20 +1,3 @@
|
|
1
|
-
|
1
|
+
#!/usr/bin/ruby
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
$debug = true
|
6
|
-
|
7
|
-
control_address = tunnel_port = nil
|
8
|
-
|
9
|
-
(opts = OptionParser.new do |o|
|
10
|
-
o.on("-c", "--control ADDRESS") { |a| control_address = a }
|
11
|
-
o.on("-t", "--tunnel-port PORT") { |a| tunnel_port = a }
|
12
|
-
end).parse! rescue (puts opts; exit)
|
13
|
-
|
14
|
-
server = RTunnel::Server.new(
|
15
|
-
:control_address => control_address,
|
16
|
-
:tunnel_port => tunnel_port
|
17
|
-
)
|
18
|
-
|
19
|
-
server.start
|
20
|
-
server.join
|
3
|
+
load 'rtunnel_server_cmd.rb'
|
data/lib/core.rb
CHANGED
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
|
3
|
+
$LOAD_PATH << 'lib'
|
4
|
+
|
5
|
+
require 'client'
|
6
|
+
|
7
|
+
$debug = true
|
8
|
+
|
9
|
+
control_address = tunnel_from_address = tunnel_to_address = remote_listen_address = nil
|
10
|
+
|
11
|
+
(opts = OptionParser.new do |o|
|
12
|
+
o.on("-c", "--control-address ADDRESS") { |a| control_address = a }
|
13
|
+
o.on("-f", "--remote-listen-port ADDRESS") { |a| remote_listen_address = a }
|
14
|
+
o.on("-p", "--tunnel-port ADDRESS") { |a| tunnel_port = a }
|
15
|
+
o.on("-t", "--tunnel-to ADDRESS") { |a| tunnel_to_address = a }
|
16
|
+
end).parse! rescue (puts opts; exit)
|
17
|
+
|
18
|
+
(puts opts; exit) if [control_address, remote_listen_address, tunnel_to_address].include? nil
|
19
|
+
|
20
|
+
client = RTunnel::Client.new(
|
21
|
+
:control_address => control_address,
|
22
|
+
:remote_listen_address => remote_listen_address,
|
23
|
+
:tunnel_to_address => tunnel_to_address
|
24
|
+
)
|
25
|
+
client.start
|
26
|
+
client.join
|
@@ -0,0 +1,22 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
|
3
|
+
$LOAD_PATH << 'lib'
|
4
|
+
|
5
|
+
require 'server'
|
6
|
+
|
7
|
+
$debug = true
|
8
|
+
|
9
|
+
control_address = tunnel_port = nil
|
10
|
+
|
11
|
+
(opts = OptionParser.new do |o|
|
12
|
+
o.on("-c", "--control ADDRESS") { |a| control_address = a }
|
13
|
+
o.on("-t", "--tunnel-port PORT") { |a| tunnel_port = a }
|
14
|
+
end).parse! rescue (puts opts; exit)
|
15
|
+
|
16
|
+
server = RTunnel::Server.new(
|
17
|
+
:control_address => control_address,
|
18
|
+
:tunnel_port => tunnel_port
|
19
|
+
)
|
20
|
+
|
21
|
+
server.start
|
22
|
+
server.join
|
data/rtunnel_client.rb
ADDED
data/rtunnel_server.rb
ADDED
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rtunnel
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.2.
|
6
|
+
version: 0.2.3
|
7
7
|
date: 2007-11-25 00:00:00 +07:00
|
8
8
|
summary: The author was too lazy to write a summary
|
9
9
|
require_paths:
|
@@ -32,8 +32,12 @@ files:
|
|
32
32
|
- History.txt
|
33
33
|
- Manifest.txt
|
34
34
|
- README.txt
|
35
|
+
- rtunnel_client.rb
|
36
|
+
- rtunnel_server.rb
|
35
37
|
- bin/rtunnel_client
|
36
38
|
- bin/rtunnel_server
|
39
|
+
- lib/rtunnel_client_cmd.rb
|
40
|
+
- lib/rtunnel_server_cmd.rb
|
37
41
|
- lib/client.rb
|
38
42
|
- lib/core.rb
|
39
43
|
- lib/server.rb
|