Set default endpoint

master
eater 5 years ago
parent bc35aece9b
commit 87cb056ce3
Signed by: eater
GPG Key ID: 656785D50BE51C0A

@ -42,5 +42,9 @@ func CreateConfig(path string, cfg *Config) {
cfg.Zerooo.Location = filepath.Join(filepath.Dir(path), cfg.Zerooo.Location) 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) Check(err, "Couldn't parse %q, err: %s", path, err)
} }

Loading…
Cancel
Save