Browse Source
Merge pull request #7113 from Morph1984/no-log-ip-addr
network: Do not log IP address
pull/15/merge
bunnei
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
2 deletions
-
src/core/network/network.cpp
|
|
@ -366,8 +366,6 @@ std::optional<IPv4Address> GetHostIPv4Address() { |
|
|
if (res != network_interfaces.end()) { |
|
|
if (res != network_interfaces.end()) { |
|
|
char ip_addr[16] = {}; |
|
|
char ip_addr[16] = {}; |
|
|
ASSERT(inet_ntop(AF_INET, &res->ip_address, ip_addr, sizeof(ip_addr)) != nullptr); |
|
|
ASSERT(inet_ntop(AF_INET, &res->ip_address, ip_addr, sizeof(ip_addr)) != nullptr); |
|
|
LOG_INFO(Network, "IP address: {}", ip_addr); |
|
|
|
|
|
|
|
|
|
|
|
return TranslateIPv4(res->ip_address); |
|
|
return TranslateIPv4(res->ip_address); |
|
|
} else { |
|
|
} else { |
|
|
LOG_ERROR(Network, "Couldn't find selected interface \"{}\"", selected_network_interface); |
|
|
LOG_ERROR(Network, "Couldn't find selected interface \"{}\"", selected_network_interface); |
|
|
|