Skip to content

Commit

Permalink
fix: parse the API URL using the non-deprecated options
Browse files Browse the repository at this point in the history
  • Loading branch information
ThinkChaos committed Jul 7, 2023
1 parent a077b1a commit 42db8ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/root.go
Expand Up @@ -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

Expand Down

0 comments on commit 42db8ec

Please sign in to comment.