Support hostname with _ in name
piotrwielgolaski-tomtom opened this issue · comments
Bug Report
I spotted the same issue that was described here https://www.chrissearle.org/2022/02/22/r2dbc-postgresql-invalid-ipv6-address-when-dockerized/
When using docker host alias with _ host and port are incorrectly parsed.
Versions
- Driver: 1.0.0
- Database: not relevant
- Java: 11
- OS: macOS
Current Behavior
Host is incorrect parsed. Host contains port instead keeping port in port variable.
Stack trace
// your stack trace here
Table schema
Input Code
-- your SQL here;
Steps to reproduce
Input Code
// your code here;
Expected behavior/code
Possible Solution
Additional context
It looks that this is underlying issue https://stackoverflow.com/questions/28568188/java-net-uri-get-host-with-underscores