mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-27 20:15:25 +00:00
Add support for MagicDNS
This commit is contained in:
parent
0bbf343348
commit
3f3cfedffa
@ -108,7 +108,12 @@ func GetDNSConfig() *tailcfg.DNSConfig {
|
|||||||
dnsConfig.Domains = viper.GetStringSlice("dns_config.domains")
|
dnsConfig.Domains = viper.GetStringSlice("dns_config.domains")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if viper.IsSet("dns_config.magic_dns") {
|
||||||
|
dnsConfig.Proxied = viper.GetBool("dns_config.magic_dns")
|
||||||
|
}
|
||||||
|
|
||||||
return dnsConfig
|
return dnsConfig
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user