Skip to content

Commit

Permalink
Fixed FQDN check
Browse files Browse the repository at this point in the history
  • Loading branch information
svera committed May 2, 2024
1 parent 6a4f043 commit bdb4efa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ func main() {

controllers := webserver.SetupControllers(webserverConfig, db, metadataReaders, idx, sender, appFs)
app := webserver.New(webserverConfig, controllers, sender, idx)
if strings.ToLower(cfg.Hostname) == "localhost" {
fmt.Printf("Warning: using \"localhost\" as host name. Links using this host name won't be accesible outside this system.\n")
if strings.ToLower(cfg.FQDN) == "localhost" {
fmt.Printf("Warning: using \"localhost\" as FQDN. Links using this FQDN won't be accesible outside this system.\n")
}
fmt.Printf("Coreander version %s started listening on port %d\n\n", version, cfg.Port)
log.Fatal(app.Listen(fmt.Sprintf(":%d", cfg.Port)))
Expand Down

0 comments on commit bdb4efa

Please sign in to comment.