Skip to content

Commit

Permalink
fix: keep pob tabs active for disco always
Browse files Browse the repository at this point in the history
  • Loading branch information
dd84ai committed Jan 12, 2025
1 parent 8d17a2a commit 31457ba
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions darkstat/settings/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,8 @@ func (e DarkstatEnvVars) GetSiteRootAcceptors() []string {
}

func IsRelayActive(configs *configs_mapped.MappedConfigs) bool {
if Env.IsDevEnv && configs.Discovery != nil {
fmt.Println("activating relay for dev env of discovery")
return true
}

if !strings.Contains(Env.RelayHost, "localhost") {
fmt.Println("activating relay for non localhost RELAY_HOST variable defined")
if configs.Discovery != nil {
fmt.Println("discovery always wishes to see pobs")
return true
}

Expand Down

0 comments on commit 31457ba

Please sign in to comment.