Parcourir la source

[fix] syntax error

ljf il y a 7 ans
Parent
commit
01b2a73055
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      vpn/models.py

+ 1 - 1
vpn/models.py

@@ -95,7 +95,7 @@ class VPNConfiguration(CoinLdapSyncMixin, Configuration):
             subnets_v6 = [s for s in subnets if s.inet.version == 6]
             if len(subnets_v6) > 0:
                 # With v6, we choose the second host of the subnet (cafe::1)
-                net = subnets_v6[0].inet
+                inet = subnets_v6[0].inet
                 if inet.prefixlen != 128:
                     gen = inet.iter_hosts()
                     gen.next()