Skip to content

Commit

Permalink
const reference
Browse files Browse the repository at this point in the history
  • Loading branch information
TrentHouliston committed Sep 16, 2023
1 parent 35da1a9 commit b3fabcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/network/if_number_from_address.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace util {
}

// Find the correct interface to join on (the one that has our bind address)
for (auto& iface : get_interfaces()) {
for (const auto& iface : get_interfaces()) {
// iface must be, ipv6, and have the same address as our bind address
if (iface.ip.sock.sa_family == AF_INET6
&& ::memcmp(iface.ip.ipv6.sin6_addr.s6_addr, ipv6.sin6_addr.s6_addr, sizeof(in6_addr)) == 0) {
Expand Down

0 comments on commit b3fabcc

Please sign in to comment.