mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
Update src/Common/isLocalAddress.cpp
Co-authored-by: Igor Nikonov <954088+devcrafter@users.noreply.github.com>
This commit is contained in:
parent
074ee40e3b
commit
5ace2a15db
@ -78,7 +78,7 @@ struct NetworkInterfaces
|
||||
freeifaddrs(ifaddr);
|
||||
}
|
||||
|
||||
static NetworkInterfaces & instance()
|
||||
static const NetworkInterfaces & instance()
|
||||
{
|
||||
static constexpr int NET_INTERFACE_VALID_PERIOD_SECONDS = 30;
|
||||
static std::unique_ptr<NetworkInterfaces> nf = std::make_unique<NetworkInterfaces>();
|
||||
|
Loading…
Reference in New Issue
Block a user