From 87cb056ce320561888ebee95ccd3e578041c0cb0 Mon Sep 17 00:00:00 2001 From: eater <=@eater.me> Date: Mon, 5 Aug 2019 23:13:29 +0200 Subject: [PATCH] Set default endpoint --- config.go | 4 ++++ 1 file changed, 4 insertions(+) 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) }