netlink: Fix swapped v4/v6-only flags in external interface detection
The effect of this typo became visible in an IPv6-only environment, where passt wouldn't work at all. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
caa22aa644
commit
64f7d81d9a
1 changed files with 2 additions and 2 deletions
|
@ -231,8 +231,8 @@ v6:
|
|||
}
|
||||
|
||||
if (first_v6) {
|
||||
*v4 = IP_VERSION_ENABLED;
|
||||
*v6 = IP_VERSION_DISABLED;
|
||||
*v4 = IP_VERSION_DISABLED;
|
||||
*v6 = IP_VERSION_ENABLED;
|
||||
return first_v6;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue