Description
Currently sqlx in db_pools uses runtime-tokio-rustls as its feature. This has a bug which results in a InvalidDNSNameError for raw IP addresses as a part of the url. This is being fixed, however, it would be nice to let the user choose their TLS back-end.
To Reproduce
Setting the database url to a raw IP address as follows:
mysql://foo:bar@<IP>:3306/baz
Expected Behavior
The IP shouldn't need any DNS resolution.
Environment:
- OS Distribution and Kernel: [Fedora 36, Kernel 6.0.5]
- Rocket Version: [0.5.0-rc.2]
Additional Context
A simple fix is to remove the feature from sqlx, and let the user choose the backend.
Description
Currently
sqlxindb_poolsusesruntime-tokio-rustlsas its feature. This has a bug which results in aInvalidDNSNameErrorfor raw IP addresses as a part of the url. This is being fixed, however, it would be nice to let the user choose their TLS back-end.To Reproduce
Setting the database url to a raw IP address as follows:
Expected Behavior
The IP shouldn't need any DNS resolution.
Environment:
Additional Context
A simple fix is to remove the feature from sqlx, and let the user choose the backend.