chore: remove old username in dns option
This commit is contained in:
parent
156d7c9ee7
commit
9734f0c704
4 changed files with 1 additions and 17 deletions
|
|
@ -25,9 +25,7 @@ export async function loader() {
|
|||
const dns = {
|
||||
prefixes: config.prefixes,
|
||||
magicDns: config.dns.magic_dns,
|
||||
baseDomain: config.dns.use_username_in_magic_dns
|
||||
? `[user].${config.dns.base_domain}`
|
||||
: config.dns.base_domain,
|
||||
baseDomain: config.dns.base_domain,
|
||||
nameservers: config.dns.nameservers.global,
|
||||
splitDns: config.dns.nameservers.split,
|
||||
searchDomains: config.dns.search_domains,
|
||||
|
|
|
|||
|
|
@ -38,10 +38,6 @@ export async function loader({ request, context: lC }: LoaderFunctionArgs) {
|
|||
if (config.dns.magic_dns) {
|
||||
magic = config.dns.base_domain;
|
||||
}
|
||||
|
||||
if (config.dns.use_username_in_magic_dns) {
|
||||
magic = `[user].${magic}`;
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -119,7 +119,6 @@ const HeadscaleConfig = z.object({
|
|||
}),
|
||||
)
|
||||
.default([]),
|
||||
use_username_in_magic_dns: goBool.default(false),
|
||||
}),
|
||||
|
||||
oidc: z
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue