cmd: prevent outposts from panicking when failing to get their config

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-10-05 22:19:05 +02:00
parent e8420957b1
commit 5f4a1417b2
2 changed files with 6 additions and 0 deletions

View File

@ -45,6 +45,9 @@ func main() {
defer common.Defer()
ac := ak.NewAPIController(*akURLActual, akToken)
if ac == nil {
os.Exit(1)
}
ac.Server = ldap.NewServer(ac)

View File

@ -59,6 +59,9 @@ func main() {
defer common.Defer()
ac := ak.NewAPIController(*akURLActual, akToken)
if ac == nil {
os.Exit(1)
}
ac.Server = proxyv2.NewProxyServer(ac, portOffset)