Skip to content

Conversation

@heisbrot
Copy link
Contributor

No description provided.

if (customDNSDomain == "") return "";
const valid = validator.isValidDomain(customDNSDomain, {
allowWildcard: false,
allowOnlyTld: false,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
allowOnlyTld: false,
allowOnlyTld: true,

This should be allowed, no? E.g. if someone wants peer1.netbird or something like that

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@heisbrot This ^^. Why not allow TLD-only custom domains?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alindt Currently, that's a backend limitation. We will fix it once the backend is ready.

@heisbrot heisbrot merged commit ebbe865 into main Apr 28, 2025
4 checks passed
@heisbrot heisbrot deleted the feature/custom-dns-domain branch April 28, 2025 09:58
alindt pushed a commit to alindt/netbird-dashboard that referenced this pull request Apr 29, 2025
* Update domain validator

* Add custom dns domain
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

Successfully merging this pull request may close these issues.

4 participants