Skip to content

Commit 919666f

Browse files
Use scheme from original url (#27)
1 parent 87081a2 commit 919666f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/config/remote_signer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (c *RemoteSignerConfig) Parse() (*ParsedRemoteSignerConfig, error) {
4646
if err != nil {
4747
return nil, fmt.Errorf("invalid url %s: %w", urlStr, err)
4848
}
49-
urls[i] = fmt.Sprintf("http://%s", parsedUrl.Host)
49+
urls[i] = fmt.Sprintf("%s://%s", parsedUrl.Scheme, parsedUrl.Host)
5050

5151
publicKeyStr := parsedUrl.User.String()
5252
pkBytes, err := hex.DecodeString(publicKeyStr)

0 commit comments

Comments
 (0)