Skip to content

Support for IPv6 addresses #7

@Wernfried

Description

@Wernfried

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions