fix: parse the API URL using the non-deprecated options

This commit is contained in:
ThinkChaos 2023-05-07 18:14:15 -04:00
parent a077b1a66a
commit 42db8ec943
1 changed files with 2 additions and 2 deletions

View File

@ -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