Fix regression where script crashes when using IPv6
Regression was introduced in d67aadd038
This commit is contained in:
parent
b6a47783b6
commit
d0a3658a93
|
@ -312,7 +312,10 @@ def main():
|
||||||
cfgdrv.set_hostname(args.hostname)
|
cfgdrv.set_hostname(args.hostname)
|
||||||
|
|
||||||
for net in args.networks:
|
for net in args.networks:
|
||||||
net = net.split(":")
|
if ";" in net:
|
||||||
|
net = net.split(";")
|
||||||
|
else:
|
||||||
|
net = net.split(":")
|
||||||
cfgdrv.conf_network(*net)
|
cfgdrv.conf_network(*net)
|
||||||
|
|
||||||
if args.nameservers:
|
if args.nameservers:
|
||||||
|
|
Loading…
Reference in New Issue