Add support for MagicDNS

This commit is contained in:
Juan Font Alonso 2021-09-28 00:22:29 +02:00
parent 0bbf343348
commit 3f3cfedffa

View File

@ -108,7 +108,12 @@ func GetDNSConfig() *tailcfg.DNSConfig {
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 nil