summaryrefslogtreecommitdiff
path: root/src/mongo/s/load_balancer_support.h
diff options
context:
space:
mode:
authorTyler Seip <Tyler.Seip@mongodb.com>2021-11-19 14:30:19 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-11-19 15:26:29 +0000
commit3a18d295d22b377cc7bc4c97bd3b6884d065bb85 (patch)
tree8353e467960cc43a2a4a6ce880e58fc7c74278fd /src/mongo/s/load_balancer_support.h
parentba58b35e19dd20b66bb3d0988a3e88949fe776fa (diff)
downloadmongo-3a18d295d22b377cc7bc4c97bd3b6884d065bb85.tar.gz
SERVER-60679: Parse proxy protocol header on proxied connections
Diffstat (limited to 'src/mongo/s/load_balancer_support.h')
-rw-r--r--src/mongo/s/load_balancer_support.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/s/load_balancer_support.h b/src/mongo/s/load_balancer_support.h
index 57928e8d6e3..59f4aae3c5d 100644
--- a/src/mongo/s/load_balancer_support.h
+++ b/src/mongo/s/load_balancer_support.h
@@ -35,10 +35,9 @@
namespace mongo::load_balancer_support {
/**
- * When a connection is made, we identify whether it came in through a load
- * balancer. We associate this information with the `client`.
+ * Gets the load balancer port, if we are configured to enable one.
*/
-void setClientIsFromLoadBalancer(Client* client);
+boost::optional<int> getLoadBalancerPort();
/**
* Helper for handling the `hello` command on mongos.