We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 100bd85 commit 738c3faCopy full SHA for 738c3fa
pkg/multicloud/cephfs/client.go
@@ -120,7 +120,11 @@ func (cli *SCephFSClient) getDefaultClient() *http.Client {
120
}
121
122
func (cli *SCephFSClient) baseUrl() string {
123
- return fmt.Sprintf("https://%s:%d/api", cli.host, cli.port)
+ protocol := "http"
124
+ if strings.Contains(fmt.Sprintf("%d", cli.port), "443") {
125
+ protocol = "https"
126
+ }
127
+ return fmt.Sprintf("%s://%s:%d/api", protocol, cli.host, cli.port)
128
129
130
func (cli *SCephFSClient) auth() error {
0 commit comments