Update src/Common/isLocalAddress.cpp

Co-authored-by: Igor Nikonov <954088+devcrafter@users.noreply.github.com>
This commit is contained in:
Duc Canh Le 2023-09-20 16:46:32 +08:00 committed by GitHub
parent 074ee40e3b
commit 5ace2a15db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>();