diff options
author | Alexander Fokin <apfokin@gmail.com> | 2022-02-10 16:45:38 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:38 +0300 |
commit | bf9e69a933f89af083d895185f01ed65e4d90766 (patch) | |
tree | b2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /util/network/socket.cpp | |
parent | 863a59a65247c24db7cb06789bc5cf79d04da32f (diff) | |
download | ydb-bf9e69a933f89af083d895185f01ed65e4d90766.tar.gz |
Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/network/socket.cpp')
-rw-r--r-- | util/network/socket.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/network/socket.cpp b/util/network/socket.cpp index 2d157bb53d..4f6e804346 100644 --- a/util/network/socket.cpp +++ b/util/network/socket.cpp @@ -956,15 +956,15 @@ namespace { insert("::1"); } - inline bool IsLocalName(const char* name) const noexcept { + inline bool IsLocalName(const char* name) const noexcept { struct sockaddr_in sa; memset(&sa, 0, sizeof(sa)); - if (inet_pton(AF_INET, name, &(sa.sin_addr)) == 1) { + if (inet_pton(AF_INET, name, &(sa.sin_addr)) == 1) { return (InetToHost(sa.sin_addr.s_addr) >> 24) == 127; } - return contains(name); + return contains(name); } }; } |