summaryrefslogtreecommitdiff
path: root/go/internal/handler/receive_pack.go
diff options
context:
space:
mode:
authorAhmad Hassan <ahmad.hassan612@gmail.com>2018-10-29 16:34:59 +0200
committerAhmad Hassan <ahmad.hassan612@gmail.com>2018-10-30 15:52:51 +0200
commit688dde61f33d69ef3b4b0f2a03f30f092777375a (patch)
tree1364a4df385738c9cd184bce3ff0a5b2eb509ecc /go/internal/handler/receive_pack.go
parent9cf3334cb5cdf871266a2b9538589e36efd788e1 (diff)
downloadgitlab-shell-gitaly-tls.tar.gz
Add support for gitaly tlsgitaly-tls
Diffstat (limited to 'go/internal/handler/receive_pack.go')
-rw-r--r--go/internal/handler/receive_pack.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/go/internal/handler/receive_pack.go b/go/internal/handler/receive_pack.go
index e69486f..fecb83b 100644
--- a/go/internal/handler/receive_pack.go
+++ b/go/internal/handler/receive_pack.go
@@ -14,7 +14,9 @@ func ReceivePack(gitalyAddress string, request *pb.SSHReceivePackRequest) (int32
return 0, fmt.Errorf("no gitaly_address given")
}
- conn, err := client.Dial(gitalyAddress, dialOpts())
+ gitalyAddress, isTls := transFormTls(gitalyAddress)
+ conn, err := client.Dial(gitalyAddress, dialOpts(isTls))
+
if err != nil {
return 0, err
}