Set default endpoint

This commit is contained in:
eater 2019-08-05 23:13:29 +02:00
parent bc35aece9b
commit 87cb056ce3
Signed by: eater
GPG key ID: 656785D50BE51C0A

View file

@ -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)
}