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
commitda8fe75e5a837ef6a6e8a21f96dcee631e8b5a1e (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /util/network/socket.cpp
parent52faf709473af8421da1e2ea84ae1879b16665b8 (diff)
downloadydb-da8fe75e5a837ef6a6e8a21f96dcee631e8b5a1e.tar.gz
Restoring authorship annotation for <xpahos@yandex-team.ru>. Commit 2 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 619b555e4a1..4f6e8043462 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);
}
};