• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

elixir-mint / mint / 42605087fdb7cf6c4c71cadbfd7d4c2ea48a5ad7-PR-496
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: http2-connect-target
DEFAULT BRANCH: main
Ran 21 Jul 2026 12:54PM UTC
Jobs 1
Files 21
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Jul 2026 12:52PM UTC coverage: 87.875% (-0.009%) from 87.884%
42605087fdb7cf6c4c71cadbfd7d4c2ea48a5ad7-PR-496

Pull #496

github

ericmj
Fix hostname/address handling in tunnel proxies

Tunnel mode had the two halves of the documented contract inverted.
establish_proxy/2 built the CONNECT authority from the :hostname
override, so a pinned-IP address was never sent to the proxy and DNS
pinning silently stopped working through tunnels. upgrade_connection/3
then used the raw address as the TLS identity, so SNI, certificate
verification, and the post-tunnel Host header / HTTP/2 :authority all
used the address instead of the declared identity; with an :inet tuple
address (documented as supported) the upgrade raised in
String.to_charlist/1.

Now the CONNECT request targets the connection address (with :inet
tuples formatted via :inet.ntoa/1 and IPv6 addresses bracketed) while
the TLS upgrade uses the same identity resolution as direct
connections. The Host header of the CONNECT request is set to the
authority-form target as required by RFC 9112, section 3.2.3; it
previously named the proxy.

The pkix_test_data/1 helper duplicated in two test modules moved to a
shared Mint.TestCertificates support module.
Pull Request #496: Fix hostname/address handling in tunnel proxies

13 of 14 new or added lines in 1 file covered. (92.86%)

1464 of 1666 relevant lines covered (87.88%)

495.75 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
76.67
1.19% lib/mint/tunnel_proxy.ex
Jobs
ID Job ID Ran Files Coverage
1 42605087fdb7cf6c4c71cadbfd7d4c2ea48a5ad7-PR-496.1 21 Jul 2026 12:54PM UTC 21
87.88
GitHub Action Run
Source Files on build 42605087fdb7cf6c4c71cadbfd7d4c2ea48a5ad7-PR-496
  • Tree
  • List 21
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #496
  • PR Base - main (#16D6B566...)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc