outpost: re-run globalSetup when updating config

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-12-20 21:08:03 +01:00
parent c843f18743
commit 052e465041

View file

@ -146,6 +146,7 @@ func (a *APIController) OnRefresh() error {
a.Outpost = outposts.Results[0]
a.logger.WithField("name", a.Outpost.Name).Debug("Fetched outpost configuration")
doGlobalSetup(a.Outpost, a.GlobalConfig)
return a.Server.Refresh()
}