Skip to content

Commit

Permalink
provider-config: Append port after hostname instead of at the end of URL
Browse files Browse the repository at this point in the history
Signed-off-by: Din Music <[email protected]>
  • Loading branch information
MusicDin committed Nov 29, 2024
1 parent 60db667 commit faa0a48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/provider-config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -569,10 +569,10 @@ func DetermineLXDAddress(protocol string, address string) (string, error) {
port = "443"
}

address = fmt.Sprintf("%s:%s", address, port)
url.Host = fmt.Sprintf("%s:%s", url.Hostname(), port)
}

return address, nil
return url.String(), nil
default:
return "", fmt.Errorf("Invalid scheme %q: Value must be one of: [unix, https]", scheme)
}
Expand Down

0 comments on commit faa0a48

Please sign in to comment.