Skip to content

Commit

Permalink
Update naming
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmacdonald committed Mar 24, 2024
1 parent 0b6a5cc commit cc2e99d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tf2bdd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ func (config Config) ListenAddr() string {
}

func (config Config) UpdateURL() (string, error) {
extUrl := config.ExternalURL
if extUrl == "" {
extURL := config.ExternalURL
if extURL == "" {
host := config.ListenHost
if host == "" {
host = "localhost"
}
extUrl = fmt.Sprintf("http://%s", net.JoinHostPort(host, fmt.Sprintf("%d", config.ListenPort)))
extURL = fmt.Sprintf("http://%s", net.JoinHostPort(host, fmt.Sprintf("%d", config.ListenPort)))
}

parsed, errParse := url.Parse(extUrl)
parsed, errParse := url.Parse(extURL)
if errParse != nil {
return "", errParse
}
Expand Down

0 comments on commit cc2e99d

Please sign in to comment.