You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
The text was updated successfully, but these errors were encountered:
Hi @aqrln, RUST-229 tracks the progress of implementing ipv6 address support. We do not currently have this work on our roadmap, but we would welcome a pull request if this is something you are looking for in the near future.
isabelatkinson
changed the title
Connection string parser does not support IPv6 addresses
RUST-229 Connection string parser does not support IPv6 addresses
Jul 21, 2023
Versions/Environment
[email protected]
,[email protected]
and latest from gitDescribe 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
mongodb://root:root@[::1]:27018/tests
port must be valid 16-bit unsigned integer, instead got:
The text was updated successfully, but these errors were encountered: