From 5062bdf2c2bf1b46701280e5dc5ed6d1f7bd4e3e Mon Sep 17 00:00:00 2001 From: zdm <zdm@yandex-team.ru> Date: Thu, 10 Feb 2022 16:49:24 +0300 Subject: Restoring authorship annotation for <zdm@yandex-team.ru>. Commit 1 of 2. --- library/cpp/http/server/options.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'library/cpp/http/server/options.h') diff --git a/library/cpp/http/server/options.h b/library/cpp/http/server/options.h index 38eda0e5e7..03a8b6ed7c 100644 --- a/library/cpp/http/server/options.h +++ b/library/cpp/http/server/options.h @@ -2,7 +2,7 @@ #include <util/network/ip.h> #include <util/network/init.h> -#include <util/network/address.h> +#include <util/network/address.h> #include <util/generic/size_literals.h> #include <util/generic/string.h> #include <util/generic/vector.h> @@ -19,15 +19,15 @@ public: void BindAddresses(TBindAddresses& ret) const; inline THttpServerOptions& AddBindAddress(const TString& address, ui16 port) { - const TAddr addr = { + const TAddr addr = { address, port, }; - BindSockaddr.push_back(addr); + BindSockaddr.push_back(addr); return *this; - } - + } + inline THttpServerOptions& AddBindAddress(const TString& address) { return AddBindAddress(address, 0); } @@ -139,13 +139,13 @@ public: return *this; } - struct TAddr { + struct TAddr { TString Addr; - ui16 Port; - }; - + ui16 Port; + }; + typedef TVector<TAddr> TAddrs; - + bool KeepAliveEnabled = true; bool CompressionEnabled = false; bool RejectExcessConnections = false; -- cgit v1.2.3