Browse Source

Fix regression where script crashes when using IPv6

Regression was introduced in d67aadd038
Sebastian Lohff 2 months ago
parent
commit
d0a3658a93
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      genconfdrv/genconfdrv.py

+ 4
- 1
genconfdrv/genconfdrv.py View File

@@ -312,7 +312,10 @@ def main():
312 312
         cfgdrv.set_hostname(args.hostname)
313 313
 
314 314
         for net in args.networks:
315
-            net = net.split(":")
315
+            if ";" in net:
316
+                net = net.split(";")
317
+            else:
318
+                net = net.split(":")
316 319
             cfgdrv.conf_network(*net)
317 320
 
318 321
         if args.nameservers:

Loading…
Cancel
Save