1
0
mirror of https://github.com/nbd-wtf/satdress.git synced 2024-11-11 16:30:35 +00:00

lowercase DOMAIN.

fixes https://github.com/fiatjaf/satdress/issues/15
This commit is contained in:
fiatjaf 2021-08-24 20:56:58 -03:00
parent e2945ff375
commit 8f09556529

View File

@ -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.")