mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-10 23:24:32 +08:00
parent
ac0ff1fc2a
commit
cc46fe3a64
1 changed files with 0 additions and 12 deletions
|
@ -497,18 +497,6 @@ func SetNodeID(id string) {
|
|||
config.Config.Server.NodeID = id
|
||||
}
|
||||
|
||||
// GetServerCheckinInterval - gets the server check-in time
|
||||
func GetServerCheckinInterval() int64 {
|
||||
var t = int64(5)
|
||||
var envt, _ = strconv.Atoi(os.Getenv("SERVER_CHECKIN_INTERVAL"))
|
||||
if envt > 0 {
|
||||
t = int64(envt)
|
||||
} else if config.Config.Server.ServerCheckinInterval > 0 {
|
||||
t = config.Config.Server.ServerCheckinInterval
|
||||
}
|
||||
return t
|
||||
}
|
||||
|
||||
// GetAuthProviderInfo = gets the oauth provider info
|
||||
func GetAuthProviderInfo() (pi []string) {
|
||||
var authProvider = ""
|
||||
|
|
Loading…
Add table
Reference in a new issue