summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/network/network.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/network/network.cpp b/src/core/network/network.cpp
index 4669130ee..71583159a 100644
--- a/src/core/network/network.cpp
+++ b/src/core/network/network.cpp
@@ -368,10 +368,10 @@ std::optional<IPv4Address> GetHostIPv4Address() {
return {};
}
- const auto res = std::ranges::find_if(network_interfaces,
- [&selected_network_interface](const auto& interface) {
- return interface.name == selected_network_interface;
- });
+ const auto res =
+ std::ranges::find_if(network_interfaces, [&selected_network_interface](const auto& iface) {
+ return iface.name == selected_network_interface;
+ });
if (res != network_interfaces.end()) {
char ip_addr[16] = {};