etunnel 1.7.36 → 1.7.37
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 +5 -9
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e575dd50595ae77ac4a0de148917a9bb0ee6f8329f2eea6c614c9b85477ec45f
|
|
4
|
+
data.tar.gz: 6728ee2481cd9896ccdd1b112f743c6b016b6f311bd29a78a1989e0ea964f4c2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c794db0554a2d39159eaa6361fec9b319d1bccf3285426e9045668c7e408755e125fb75a207f45211f74e2eb06bada3d355793a5d3c502c2a15549a5fa8caf4
|
|
7
|
+
data.tar.gz: 8581460cde7022adc7192945b54318d6a9027ccfddc87b83f31777733238b6a5a858dc8d5149db525c9708fd2314d1889d59ecb6c10afb971a0424ee970a4d06
|
data/README.md
CHANGED
|
@@ -34,7 +34,6 @@ sleep
|
|
|
34
34
|
```
|
|
35
35
|
- Rules: print the public URL as `TUNNEL_URL: <url>` and keep the process alive; call `t.close` on shutdown to release the subdomain. This SDK is buffer-based (no WebSocket upgrades, no streaming) - fine for webhooks/APIs/dashboards.
|
|
36
36
|
- Do not invent other options. Full API/options: #embed and #multi-target-routing. Wire protocol: https://github.com/topcheer/etunnel/blob/main/PROTOCOL.md
|
|
37
|
-
- Known issue in 1.7.35: `t.resume_token` and the `etunnel` CLI crash (SystemStackError); do not rely on them.
|
|
38
37
|
````
|
|
39
38
|
|
|
40
39
|
## CLI
|
|
@@ -43,8 +42,9 @@ sleep
|
|
|
43
42
|
etunnel 3000
|
|
44
43
|
```
|
|
45
44
|
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
`bin/etunnel` calls `Etunnel.main`, which reads `ETUNNEL_*`, prints
|
|
46
|
+
`TUNNEL_URL: https://<subdomain>.t.etun.uk` — that URL now routes to
|
|
47
|
+
your local service — and exits 0 on Ctrl-C.
|
|
48
48
|
|
|
49
49
|
**Reconnects automatically.** If the connection drops (including a server
|
|
50
50
|
restart) the CLI re-dials with exponential backoff (500ms → 30s, ±20%
|
|
@@ -54,10 +54,6 @@ jitter, reset on success) and prints `TUNNEL_URL:` again. The subdomain is
|
|
|
54
54
|
server needs a stable `SESSION_SECRET`; see PROTOCOL.md §1). Set
|
|
55
55
|
`ETUNNEL_RECONNECT=0` to restore the old one-shot behaviour.
|
|
56
56
|
|
|
57
|
-
> **Status 1.7.35:** the gem's `etunnel` executable crashes right after
|
|
58
|
-
> `welcome` (`SystemStackError` in `Etunnel.connect` -> `resume_token`,
|
|
59
|
-
> `lib/etunnel.rb:166`). Use the embed below until a fixed gem is published.
|
|
60
|
-
|
|
61
57
|
## Embed
|
|
62
58
|
|
|
63
59
|
```ruby
|
|
@@ -72,9 +68,9 @@ sleep # keep the process alive
|
|
|
72
68
|
```
|
|
73
69
|
|
|
74
70
|
`Etunnel.connect(server, local, token: nil, subdomain: nil, resume: nil, routes: nil)`
|
|
75
|
-
blocks until `welcome` and returns
|
|
71
|
+
blocks until `welcome` and returns an `Etunnel::Tunnel`: `t.url` (public URL),
|
|
76
72
|
`t.resume_token` (server-signed token; replay it via `resume:` to reclaim the
|
|
77
|
-
same subdomain
|
|
73
|
+
same subdomain), `t.close` (sends `bye`).
|
|
78
74
|
`local` is a port, `"host:port"`, or `nil` when `routes` is given. Each
|
|
79
75
|
request is served on a worker thread; EventMachine runs in a background
|
|
80
76
|
thread if no reactor is running (Rails: call `connect` from an initializer).
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: etunnel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.7.
|
|
4
|
+
version: 1.7.37
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- etunnel authors
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faye-websocket
|