diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-07-06 21:06:22 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-07-06 21:06:22 +0200 |
commit | cc218b15bad7d1883ac951bc48a8285fcef78916 (patch) | |
tree | bb0779a2727c38e2cb05832ac9d9c6ecf5f4638c /src/nix/main.cc | |
parent | e5f881a7e49b2c4401fd868e0fcd2503b16a1dc8 (diff) | |
parent | b5ae85f0882f4857f550ed68b23af260af5000a0 (diff) |
Merge remote-tracking branch 'origin/master' into flakes
Diffstat (limited to 'src/nix/main.cc')
-rw-r--r-- | src/nix/main.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc index 90e554359..eedf8656e 100644 --- a/src/nix/main.cc +++ b/src/nix/main.cc @@ -39,8 +39,8 @@ static bool haveInternet() return true; } } else if (i->ifa_addr->sa_family == AF_INET6) { - if (!IN6_IS_ADDR_LOOPBACK(((sockaddr_in6 *) i->ifa_addr)->sin6_addr.s6_addr) && - !IN6_IS_ADDR_LINKLOCAL(((sockaddr_in6 *) i->ifa_addr)->sin6_addr.s6_addr)) + if (!IN6_IS_ADDR_LOOPBACK(&((sockaddr_in6 *) i->ifa_addr)->sin6_addr) && + !IN6_IS_ADDR_LINKLOCAL(&((sockaddr_in6 *) i->ifa_addr)->sin6_addr)) return true; } } |