Skip to content

Fix IPv6 literals in TLS inspection connect path#617

Merged
ryanfowler merged 1 commit into
mainfrom
fix-ipv6-tls-inspection
May 27, 2026
Merged

Fix IPv6 literals in TLS inspection connect path#617
ryanfowler merged 1 commit into
mainfrom
fix-ipv6-tls-inspection

Conversation

@ryanfowler
Copy link
Copy Markdown
Owner

Summary

  • Fixed TCP TLS inspection to resolve the target with lookup_host((host, port)) instead of building a raw host:port string.
  • Preserved the original host for SNI while normalizing URL host handling for IPv4, IPv6, and DNS names.
  • Added a regression test covering --inspect-tls against an IPv6 loopback server.

Testing

  • cargo fmt
  • cargo clippy --locked --all-targets --all-features -- -D warnings
  • cargo test --all-features tls::inspect::tests
  • cargo test --all-features tls::inspect::tests::inspect_tcp_supports_ipv6_loopback_literals

@ryanfowler ryanfowler merged commit 0c2b5ca into main May 27, 2026
4 checks passed
@ryanfowler ryanfowler deleted the fix-ipv6-tls-inspection branch May 27, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant