diff --git a/config.go b/config.go index 830db0f..4b4d09f 100644 --- a/config.go +++ b/config.go @@ -42,5 +42,9 @@ func CreateConfig(path string, cfg *Config) { cfg.Zerooo.Location = filepath.Join(filepath.Dir(path), cfg.Zerooo.Location) } + if cfg.Zerooo.Endpoint == "" { + cfg.Zerooo.Endpoint = "https://zer.ooo" + } + Check(err, "Couldn't parse %q, err: %s", path, err) }