Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for IPv6 addresses #7

Open
Wernfried opened this issue Dec 25, 2022 · 0 comments
Open

Support for IPv6 addresses #7

Wernfried opened this issue Dec 25, 2022 · 0 comments

Comments

@Wernfried
Copy link

Wernfried commented Dec 25, 2022

This nice tool should also support IPv6 addresses. In 2022 it is getting more and more relevant.

None of these are currently working:

uriObj = mongoURI.parse("mongodb://user:password@[::1]:27017/mip?authSource=admin");
uriObj = mongoURI.parse("mongodb://user:password@[fe80::81e6:5666:f147:7ef8]:27017/mip?authSource=admin");
uriObj = mongoURI.parse("mongodb://[fe80::81e6:5666:f147:7ef8]:27017/mip?authSource=admin");
uriObj = mongoURI.parse("mongodb://[::1]:27017");

See my proposal at https://github.com/Wernfried/mongodb-uri-node/blob/patch-1/mongodb-uri.js

Best Regards
Wernfried

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant