Versions/Environment
[email protected]
, [email protected]
and latest from git
Describe the bug
ServerAddress::parse
simply splits the hostname and port by :
character which doesn't work with IPv6 addresses, as it splits in the middle of the address and not after the ]
character.
To Reproduce
- Try to connect with a connection string like
mongodb://root:root@[::1]:27018/tests
- The driver returns the following error:
port must be valid 16-bit unsigned integer, instead got: