diff options
Diffstat (limited to 'go/internal/gitlabnet/client.go')
-rw-r--r-- | go/internal/gitlabnet/client.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/go/internal/gitlabnet/client.go b/go/internal/gitlabnet/client.go index e61b58d..6b253e0 100644 --- a/go/internal/gitlabnet/client.go +++ b/go/internal/gitlabnet/client.go @@ -10,7 +10,6 @@ import ( "strings" "gitlab.com/gitlab-org/gitlab-shell/go/internal/config" - "gitlab.com/gitlab-org/gitlab-shell/go/internal/sshenv" ) const ( @@ -110,10 +109,6 @@ func (c *GitlabClient) DoRequest(method, path string, data interface{}) (*http.R request.Header.Set(secretHeaderName, encodedSecret) request.Header.Add("Content-Type", "application/json") - ipAddr := sshenv.LocalAddr() - if ipAddr != "" { - request.Header.Add("X-Forwarded-For", ipAddr) - } request.Close = true |