Skip to content

Commit 67c605a

Browse files
committed
munet: fix check for str type to use correct variable
Signed-off-by: Christian Hopps <chopps@labn.net>
1 parent 3c12b01 commit 67c605a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

munet/native.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def get_loopback_ips(c, nid):
7575
if ipv6 := c.get("ipv6"):
7676
if ipv6 == "auto":
7777
ips.append(AUTO_LOOPBACK_IPV6_BASE + nid)
78-
elif isinstance(ip, str):
78+
elif isinstance(ipv6, str):
7979
ips.append(ipaddress.ip_interface(ipv6))
8080
else:
8181
ips.extend([ipaddress.ip_interface(x) for x in ipv6])

0 commit comments

Comments
 (0)