You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/portal-tunnel/README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,8 @@ portal expose --name myapp \
72
72
- Routed HTTP mode automatically forwards `X-Forwarded-*`, rewrites upstream `Location` redirects back to the public route path, and strips loopback cookie domains while remapping cookie paths to the mounted route prefix.
73
73
-`--name` is optional. When omitted, the CLI generates a name for that run.
74
74
-`--relays` adds explicit relay API URLs for that run. Explicit relays are always kept connected and are not counted against `--max-active-relays`.
75
+
-`--multi-hop` sets one ordered multi-hop relay path for that run.
76
+
-`--multi-hop-depth` automatically selects one multi-hop relay path with that hop count.
75
77
-`--discovery=false` disables the public registry seed list and the runtime relay discovery expansion loop for that run. With `--discovery=false`, only the explicit `--relays` values are used.
76
78
-`--ban-mitm` enables strict rejection when the TLS self-probe detects termination in the path.
77
79
-`--tcp` requests a dedicated TCP port on the relay for raw TCP services that do not use TLS (e.g., Minecraft, game servers).
@@ -81,6 +83,8 @@ Flags:
81
83
82
84
```text
83
85
--relays Portal relay API URLs (comma-separated, https only)
86
+
--multi-hop Ordered multi-hop relay API URLs, comma-separated
87
+
--multi-hop-depth Automatically select one multi-hop route with this hop count; 0 or 1 disables multi-hop
84
88
--discovery Include public registry relays and discover additional relay bootstraps
85
89
--max-active-relays Maximum number of auto-selected relays; explicit --relays are always included
86
90
--ban-mitm Ban relay when the MITM self-probe detects TLS termination
utils.StringFlagEnv(fs, &flags.udpAddr, "udp-addr", "", "Local UDP target address for relayed datagrams (host:port or port only); defaults to the target when --udp is enabled", "UDP_ADDR")
86
87
utils.BoolFlagEnv(fs, &flags.tcp, "tcp", false, "Request a dedicated TCP port on the relay for raw TCP services (no TLS; e.g., Minecraft, game servers)", "TCP_ENABLED")
87
88
utils.IntFlagEnv(fs, &flags.maxActiveRelays, "max-active-relays", 3, nil, "Maximum number of auto-selected relays to keep connected; explicit --relays are always included", "MAX_ACTIVE_RELAYS")
89
+
utils.IntFlagEnv(fs, &flags.multiHopDepth, "multi-hop-depth", 0, nil, "Automatically select one multi-hop route with this hop count; 0 or 1 disables multi-hop", "MULTI_HOP_DEPTH")
0 commit comments