From 5878faf546e571f0e02ec402e88e31252bb88e12 Mon Sep 17 00:00:00 2001 From: andrewwhitecdw Date: Mon, 17 Aug 2026 19:16:46 -0500 Subject: [PATCH] fix(core): reuse bracket_ipv6 in format_gateway_url and document IPv6 forwarding Addresses gator-agent review feedback on #2449: - Consolidate IPv6 bracketing by having format_gateway_url() call bracket_ipv6(). - Add an IPv6 loopback example to the Port Forwarding docs section showing the bracketed http://[::1]:8000/ URL. Signed-off-by: Andrew White Signed-off-by: andrewwhitecdw --- docs/sandboxes/manage-sandboxes.mdx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/sandboxes/manage-sandboxes.mdx b/docs/sandboxes/manage-sandboxes.mdx index e520c55f49..c9d29a58d6 100644 --- a/docs/sandboxes/manage-sandboxes.mdx +++ b/docs/sandboxes/manage-sandboxes.mdx @@ -361,6 +361,13 @@ openshell forward start 8000 my-sandbox -d # run in background OpenShell prints the local URL only after the forward listener is reachable. Background forwards must be tracked locally so `openshell forward list` and `openshell forward stop` can manage them. +To bind the local side to an IPv6 loopback address, pass it positionally as `[bind_address:]port`. IPv6 addresses are bracketed in both the SSH forward argument and the printed access URL: + +```shell +openshell forward start ::1:8000 my-sandbox +# Local URL: http://[::1]:8000/ +``` + List and stop active forwards: ```shell