Skip to content

Commit 5878faf

Browse files
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 <andrewh@cdw.com> Signed-off-by: andrewwhitecdw <andrewwhitecdw@users.noreply.github.com>
1 parent 28f3bee commit 5878faf

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎docs/sandboxes/manage-sandboxes.mdx‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,13 @@ openshell forward start 8000 my-sandbox -d # run in background
361361
362362
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.
363363
364+
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:
365+
366+
```shell
367+
openshell forward start ::1:8000 my-sandbox
368+
# Local URL: http://[::1]:8000/
369+
```
370+
364371
List and stop active forwards:
365372
366373
```shell

0 commit comments

Comments
 (0)