Browse Source

[fix] syntax error

ljf 7 years ago
parent
commit
01b2a73055
1 changed files with 1 additions and 1 deletions
  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]
             subnets_v6 = [s for s in subnets if s.inet.version == 6]
             if len(subnets_v6) > 0:
             if len(subnets_v6) > 0:
                 # With v6, we choose the second host of the subnet (cafe::1)
                 # 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:
                 if inet.prefixlen != 128:
                     gen = inet.iter_hosts()
                     gen = inet.iter_hosts()
                     gen.next()
                     gen.next()