aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/server/http.cpp
diff options
context:
space:
mode:
authoryuraaka <yuraaka@yandex-team.ru>2022-02-10 16:47:05 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:05 +0300
commit5577dc406121f6fb3f45b227c01f4251880193a1 (patch)
treeb83306b6e37edeea782e9eed673d89286c4fef35 /library/cpp/http/server/http.cpp
parent4230543261d7a38ef4dc14785ae0d45f2da43704 (diff)
downloadydb-5577dc406121f6fb3f45b227c01f4251880193a1.tar.gz
Restoring authorship annotation for <yuraaka@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http/server/http.cpp')
-rw-r--r--library/cpp/http/server/http.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/http/server/http.cpp b/library/cpp/http/server/http.cpp
index ef5bd5d6a33..128583bdd70 100644
--- a/library/cpp/http/server/http.cpp
+++ b/library/cpp/http/server/http.cpp
@@ -816,10 +816,10 @@ bool TryToBindAddresses(const THttpServerOptions& options, const std::function<v
FixIPv6ListenSocket(socket);
- if (options.ReuseAddress) {
- int yes = 1;
- ::setsockopt(socket, SOL_SOCKET, SO_REUSEADDR, (const char*)&yes, sizeof(yes));
- }
+ if (options.ReuseAddress) {
+ int yes = 1;
+ ::setsockopt(socket, SOL_SOCKET, SO_REUSEADDR, (const char*)&yes, sizeof(yes));
+ }
if (options.ReusePort) {
SetReusePort(socket, true);