etunnel 1.0.0 → 1.2.0
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.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/lib/etunnel.rb +2 -2
- metadata +4 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cf8bdbd52b8e41b04a51d41625ef9e24a962f50cdfc7d04e4098212cbc8f86d8
|
|
4
|
+
data.tar.gz: cb7486b818ba6df62231b3da6359b1526d2f3d9bf2e5f365a2406d1bf05afb65
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0bf2a1de32bb4ec651ef32e1921dde38cfb9d6f86d26a0c512bcdc111dfdc3564be26920409c373846a64c7d8055d253a1fa867d4f1ccc9974a4391978a99a1a
|
|
7
|
+
data.tar.gz: 1c7314d6de645bf7b082545fcd72c497226a35a266eba57025778936e36acc2b6f29d62750354fd21992f062d0e0d0d85df94b7f712dd8de5fa7bf05e8229a08
|
data/README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# etunnel for Ruby
|
|
2
2
|
|
|
3
|
+
[](https://rubygems.org/gems/etunnel)
|
|
4
|
+
|
|
3
5
|
EventMachine/faye-websocket based.
|
|
4
6
|
|
|
5
7
|
Zero registration: every SDK client speaks the same tiny wire protocol
|
|
6
8
|
([PROTOCOL.md](../../PROTOCOL.md)) against any etunnel server
|
|
7
|
-
(default `wss://t.
|
|
9
|
+
(default `wss://t.etun.uk/tunnel`).
|
|
8
10
|
|
|
9
11
|
## Install
|
|
10
12
|
|
|
@@ -20,14 +22,14 @@ Requires Ruby >= 2.7 (pulls in faye-websocket).
|
|
|
20
22
|
etunnel 3000
|
|
21
23
|
```
|
|
22
24
|
|
|
23
|
-
Prints `TUNNEL_URL: https://<subdomain>.t.
|
|
25
|
+
Prints `TUNNEL_URL: https://<subdomain>.t.etun.uk` — that URL now routes to
|
|
24
26
|
your local service. Ctrl-C closes the tunnel.
|
|
25
27
|
|
|
26
28
|
## Embed
|
|
27
29
|
|
|
28
30
|
```ruby
|
|
29
31
|
require 'etunnel'
|
|
30
|
-
t = Etunnel.connect('wss://t.
|
|
32
|
+
t = Etunnel.connect('wss://t.etun.uk/tunnel', 3000)
|
|
31
33
|
puts t.url
|
|
32
34
|
```
|
|
33
35
|
|
|
@@ -35,7 +37,7 @@ puts t.url
|
|
|
35
37
|
|
|
36
38
|
| Variable | Meaning | Default |
|
|
37
39
|
|---|---|---|
|
|
38
|
-
| `ETUNNEL_SERVER` | tunnel server WebSocket URL | `wss://t.
|
|
40
|
+
| `ETUNNEL_SERVER` | tunnel server WebSocket URL | `wss://t.etun.uk/tunnel` |
|
|
39
41
|
| `ETUNNEL_LOCAL` | local port or `host:port` (or 1st CLI arg) | `3000` |
|
|
40
42
|
| `ETUNNEL_TOKEN` | paid-plan API key (optional) | - |
|
|
41
43
|
| `ETUNNEL_SUBDOMAIN` | custom subdomain (paid plans) | random |
|
data/lib/etunnel.rb
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
#
|
|
9
9
|
# Embed:
|
|
10
10
|
# require_relative 'etunnel'
|
|
11
|
-
# t = Etunnel.connect('wss://t.
|
|
11
|
+
# t = Etunnel.connect('wss://t.etun.uk/tunnel', 3000)
|
|
12
12
|
# puts t.url
|
|
13
13
|
require 'json'
|
|
14
14
|
require 'socket'
|
|
@@ -157,7 +157,7 @@ module Etunnel
|
|
|
157
157
|
end
|
|
158
158
|
|
|
159
159
|
def Etunnel.main(argv = ARGV)
|
|
160
|
-
server = ENV['ETUNNEL_SERVER'] || 'wss://t.
|
|
160
|
+
server = ENV['ETUNNEL_SERVER'] || 'wss://t.etun.uk/tunnel'
|
|
161
161
|
local = argv[0] || ENV['ETUNNEL_LOCAL'] || '3000'
|
|
162
162
|
begin
|
|
163
163
|
t = Etunnel.connect(server, local,
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: etunnel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- etunnel authors
|
|
@@ -23,8 +23,7 @@ dependencies:
|
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
25
|
version: '0.11'
|
|
26
|
-
description:
|
|
27
|
-
one line of code. '
|
|
26
|
+
description: "#{LONG} "
|
|
28
27
|
executables:
|
|
29
28
|
- etunnel
|
|
30
29
|
extensions: []
|
|
@@ -55,6 +54,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
55
54
|
requirements: []
|
|
56
55
|
rubygems_version: 4.0.23
|
|
57
56
|
specification_version: 4
|
|
58
|
-
summary: Expose
|
|
59
|
-
|
|
57
|
+
summary: 'Expose local services to the internet in one line of code: instant public
|
|
58
|
+
HTTPS URLs with automatic TLS, through NAT and firewalls, no signup.'
|
|
60
59
|
test_files: []
|