Browse Source

log the allowed domains on startup

main
forest 2 months ago
parent
commit
ab1d159fd8
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      cmd/webmentiond/serve.go

+ 3
- 0
cmd/webmentiond/serve.go View File

@ -9,6 +9,7 @@ import (
"net/smtp"
"path/filepath"
"regexp"
"strings"
"time"
"github.com/go-chi/chi"
@ -103,6 +104,8 @@ func newServeCmd() Command {
return fmt.Errorf("configuration invalid: %w", err)
}
logger.Info().Msgf("server.allowed_target_domains: [%s]", strings.Join(allowedTargetDomains, ", "))
db, err := sql.Open("sqlite3", dbpath)
if err != nil {
return fmt.Errorf("failed to open %s: %w", dbpath, err)


Loading…
Cancel
Save