informalsystems / hermes

IBC Relayer in Rust
https://hermes.informal.systems
Apache License 2.0
449 stars 329 forks source link

Fix IPv6 error caused by TLS configuration #4224

Closed ljoss17 closed 3 weeks ago

ljoss17 commented 3 weeks ago

Version

Hermes v1.10.3

Summary

When configuring TLS with IPv6 gRPC endpoint, https://github.com/informalsystems/hermes/blob/v1.10.3/crates/relayer/src/util.rs#L26, a transport error: InvalidDnsNameError will be thrown since the characters [ and ] are not parsed by rustls https://docs.rs/rustls-pki-types/1.10.0/src/rustls_pki_types/server_name.rs.html#326.


For Admin Use