From 42db8ec943c9063b2001df3a2703eefa395080f4 Mon Sep 17 00:00:00 2001 From: ThinkChaos Date: Sun, 7 May 2023 18:14:15 -0400 Subject: [PATCH] fix: parse the API URL using the non-deprecated options --- cmd/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 3eb088be7..1b52a6c51 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -88,8 +88,8 @@ func initConfig() { log.ConfigureLogger(&cfg.Log) - if len(cfg.HTTPPorts) != 0 { - split := strings.Split(cfg.HTTPPorts[0], ":") + if len(cfg.Ports.HTTP) != 0 { + split := strings.Split(cfg.Ports.HTTP[0], ":") lastIdx := len(split) - 1