diff options
| author | danlark <[email protected]> | 2022-02-10 16:46:10 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:10 +0300 |
| commit | baa58daefa91fde4b4769facdbd2903763b9c6a8 (patch) | |
| tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/network/ip.h | |
| parent | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/network/ip.h')
| -rw-r--r-- | util/network/ip.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/network/ip.h b/util/network/ip.h index fbabb76cbf6..dc7c2d24a06 100644 --- a/util/network/ip.h +++ b/util/network/ip.h @@ -46,7 +46,7 @@ static inline TIpHost ResolveHost(const char* data, size_t len) { TIpHost ret; const TString s(data, len); - if (NResolver::GetHostIP(s.data(), &ret) != 0) { + if (NResolver::GetHostIP(s.data(), &ret) != 0) { ythrow TSystemError(NResolver::GetDnsError()) << "can not resolve(" << s << ")"; } @@ -70,7 +70,7 @@ struct TIpAddress: public sockaddr_in { } inline TIpAddress(TStringBuf ip, TIpPort port) { - Set(ResolveHost(ip.data(), ip.size()), port); + Set(ResolveHost(ip.data(), ip.size()), port); } inline TIpAddress(const char* ip, TIpPort port) { |
