Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-17 00:08:11 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-17 00:08:11 +0300
commit19db7fd1fefc4e4249d4e55f409f321fdb85aed1 (patch)
tree0093c7fa3eb11954b49c828b78caae28f5fb97c2 /lib/gitlab/workhorse.rb
parent8fa0c53e26c947ac647b8067fde3e9673b77b1a6 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/workhorse.rb')
-rw-r--r--lib/gitlab/workhorse.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/gitlab/workhorse.rb b/lib/gitlab/workhorse.rb
index 0d5daeefe90..81ccf3d8589 100644
--- a/lib/gitlab/workhorse.rb
+++ b/lib/gitlab/workhorse.rb
@@ -48,6 +48,9 @@ module Gitlab
attrs[:GitConfigOptions] << "receive.maxInputSize=#{receive_max_input_size.megabytes}"
end
+ remote_ip = Gitlab::ApplicationContext.current_context_attribute(:remote_ip)
+ attrs[:RemoteIP] = remote_ip if remote_ip.present?
+
attrs
end