From 8f0955652959b97a8454635ec7b369d08663f35c Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 24 Aug 2021 20:56:58 -0300 Subject: [PATCH] lowercase DOMAIN. fixes https://github.com/fiatjaf/satdress/issues/15 --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 41e1c92..b5586c6 100644 --- a/main.go +++ b/main.go @@ -40,6 +40,8 @@ func main() { log.Fatal().Err(err).Msg("couldn't process envconfig.") } + s.Domain = strings.ToLower(s.Domain) + db, err = pebble.Open(s.Domain, nil) if err != nil { log.Fatal().Err(err).Str("path", s.Domain).Msg("failed to open db.")