diff options
author | Tyler Seip <Tyler.Seip@mongodb.com> | 2021-11-19 14:30:19 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-11-19 15:26:29 +0000 |
commit | 3a18d295d22b377cc7bc4c97bd3b6884d065bb85 (patch) | |
tree | 8353e467960cc43a2a4a6ce880e58fc7c74278fd /src/mongo/s/load_balancer_support.h | |
parent | ba58b35e19dd20b66bb3d0988a3e88949fe776fa (diff) | |
download | mongo-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.h | 5 |
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. |