mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-02 03:33:05 +00:00
Fix logtail config function name
This commit is contained in:
parent
0b4f59b82b
commit
3e078f0494
1 changed files with 2 additions and 2 deletions
|
@ -169,7 +169,7 @@ func GetDERPConfig() headscale.DERPConfig {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetLogConfig() headscale.LogTailConfig {
|
func GetLogTailConfig() headscale.LogTailConfig {
|
||||||
enabled := viper.GetBool("logtail.enabled")
|
enabled := viper.GetBool("logtail.enabled")
|
||||||
|
|
||||||
return headscale.LogTailConfig{
|
return headscale.LogTailConfig{
|
||||||
|
@ -280,7 +280,7 @@ func absPath(path string) string {
|
||||||
func getHeadscaleConfig() headscale.Config {
|
func getHeadscaleConfig() headscale.Config {
|
||||||
dnsConfig, baseDomain := GetDNSConfig()
|
dnsConfig, baseDomain := GetDNSConfig()
|
||||||
derpConfig := GetDERPConfig()
|
derpConfig := GetDERPConfig()
|
||||||
logConfig := GetLogConfig()
|
logConfig := GetLogTailConfig()
|
||||||
|
|
||||||
configuredPrefixes := viper.GetStringSlice("ip_prefixes")
|
configuredPrefixes := viper.GetStringSlice("ip_prefixes")
|
||||||
parsedPrefixes := make([]netaddr.IPPrefix, 0, len(configuredPrefixes)+1)
|
parsedPrefixes := make([]netaddr.IPPrefix, 0, len(configuredPrefixes)+1)
|
||||||
|
|
Loading…
Reference in a new issue