aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_tunnel.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2024-03-14 15:41:30 +0100
committerLoïc Hoguin <[email protected]>2024-03-14 15:41:30 +0100
commit8b5f1609faffcf1166ca54c08df4ca9216c51993 (patch)
tree8360c67d59714c1641764debc2c074e4eaa90604 /src/gun_tunnel.erl
parent5e177270a2be530bbec55381d0fe66a252c3a998 (diff)
downloadgun-8b5f1609faffcf1166ca54c08df4ca9216c51993.tar.gz
gun-8b5f1609faffcf1166ca54c08df4ca9216c51993.tar.bz2
gun-8b5f1609faffcf1166ca54c08df4ca9216c51993.zip
Use public_key:cacerts_get/0 when possible
Also "fix" many TLS test failures due to yet more changes in the default options for TLS. Also small changes to make Dialyzer happy.
Diffstat (limited to 'src/gun_tunnel.erl')
-rw-r--r--src/gun_tunnel.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gun_tunnel.erl b/src/gun_tunnel.erl
index c7fecc7..789d1e3 100644
--- a/src/gun_tunnel.erl
+++ b/src/gun_tunnel.erl
@@ -565,7 +565,7 @@ commands([{tls_handshake, HandshakeEvent0, Protocols, ReplyTo}|Tail],
stream_ref := StreamRef,
tls_opts := TLSOpts0
} = HandshakeEvent0,
- TLSOpts = gun:ensure_alpn_sni(Protocols, TLSOpts0, OriginHost),
+ TLSOpts = gun:ensure_tls_opts(Protocols, TLSOpts0, OriginHost),
HandshakeEvent = HandshakeEvent0#{
tls_opts => TLSOpts
},