aboutsummaryrefslogtreecommitdiffstats
path: root/util/network/socket.cpp
diff options
context:
space:
mode:
authorxpahos <xpahos@yandex-team.ru>2022-02-10 16:47:21 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:21 +0300
commit52faf709473af8421da1e2ea84ae1879b16665b8 (patch)
tree2ec4264cfbc5e294ea04a7b12b9fa0b41f4d96ce /util/network/socket.cpp
parenteec632e483ae34bc211138c67434b1e0e6054ced (diff)
downloadydb-52faf709473af8421da1e2ea84ae1879b16665b8.tar.gz
Restoring authorship annotation for <xpahos@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/network/socket.cpp')
-rw-r--r--util/network/socket.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/network/socket.cpp b/util/network/socket.cpp
index 4f6e8043462..619b555e4a1 100644
--- a/util/network/socket.cpp
+++ b/util/network/socket.cpp
@@ -5,7 +5,7 @@
#include "iovec.h"
#include <util/system/defaults.h>
-#include <util/system/byteorder.h>
+#include <util/system/byteorder.h>
#if defined(_unix_)
#include <netdb.h>
@@ -957,13 +957,13 @@ namespace {
}
inline bool IsLocalName(const char* name) const noexcept {
- struct sockaddr_in sa;
- memset(&sa, 0, sizeof(sa));
-
+ struct sockaddr_in sa;
+ memset(&sa, 0, sizeof(sa));
+
if (inet_pton(AF_INET, name, &(sa.sin_addr)) == 1) {
- return (InetToHost(sa.sin_addr.s_addr) >> 24) == 127;
- }
-
+ return (InetToHost(sa.sin_addr.s_addr) >> 24) == 127;
+ }
+
return contains(name);
}
};