mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-17 21:47:32 +00:00
fix incorrect merge
This commit is contained in:
parent
afbfc1d370
commit
d0cd5af419
@ -161,8 +161,7 @@ func getHeadscaleApp() (*headscale.Headscale, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// maxMachineRegistrationDuration is the maximum time a client can request for a client registration
|
||||||
// maxMachineRegistrationDuration is the maximum time a client can request for a client registration
|
|
||||||
maxMachineRegistrationDuration, _ := time.ParseDuration("10h")
|
maxMachineRegistrationDuration, _ := time.ParseDuration("10h")
|
||||||
if viper.GetDuration("max_machine_registration_duration") >= time.Second {
|
if viper.GetDuration("max_machine_registration_duration") >= time.Second {
|
||||||
maxMachineRegistrationDuration = viper.GetDuration("max_machine_registration_duration")
|
maxMachineRegistrationDuration = viper.GetDuration("max_machine_registration_duration")
|
||||||
@ -174,7 +173,7 @@ func getHeadscaleApp() (*headscale.Headscale, error) {
|
|||||||
defaultMachineRegistrationDuration = viper.GetDuration("default_machine_registration_duration")
|
defaultMachineRegistrationDuration = viper.GetDuration("default_machine_registration_duration")
|
||||||
}
|
}
|
||||||
|
|
||||||
dnsConfig, baseDomain := GetDNSConfig()
|
dnsConfig, baseDomain := GetDNSConfig()
|
||||||
|
|
||||||
cfg := headscale.Config{
|
cfg := headscale.Config{
|
||||||
ServerURL: viper.GetString("server_url"),
|
ServerURL: viper.GetString("server_url"),
|
||||||
@ -207,8 +206,6 @@ func getHeadscaleApp() (*headscale.Headscale, error) {
|
|||||||
ACMEEmail: viper.GetString("acme_email"),
|
ACMEEmail: viper.GetString("acme_email"),
|
||||||
ACMEURL: viper.GetString("acme_url"),
|
ACMEURL: viper.GetString("acme_url"),
|
||||||
|
|
||||||
DNSConfig: GetDNSConfig(),
|
|
||||||
|
|
||||||
OIDCIssuer: viper.GetString("oidc_issuer"),
|
OIDCIssuer: viper.GetString("oidc_issuer"),
|
||||||
OIDCClientID: viper.GetString("oidc_client_id"),
|
OIDCClientID: viper.GetString("oidc_client_id"),
|
||||||
OIDCClientSecret: viper.GetString("oidc_client_secret"),
|
OIDCClientSecret: viper.GetString("oidc_client_secret"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user