Skip to content

fix(network): transparent egress to an IPv6 literal fails #5693

Open

Description

@FrostGod

Problem

A sandbox connection to an IPv6 address allowed by allowed_ips is closed with no response. The same request to an IPv4 address works.

For an IP destination, transparent egress builds the internal CONNECT authority as format!("{host}:{port}") in crates/openshell-supervisor-network/src/proxy.rs. For IPv6 this is fd00::5:8081, without brackets. parse_target splits at the first : and fails, so the supervisor closes the connection.

Proposed Fix

Bracket IPv6 hosts in that authority ([fd00::5]:8081), which parse_target already accepts.

Acceptance Criteria

  • Transparent egress to an allowed IPv6 literal succeeds.
  • IPv4 and hostname destinations are unchanged.
  • Unit test covers the IPv6 authority.

Activity

  1. self-assigned this
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions