Fixed DNS logic, since DNS might become [""].
This commit is contained in:
parent
b3bcf54a2c
commit
7288df57b7
|
|
@ -204,8 +204,11 @@ if nic:
|
||||||
fg='red'
|
fg='red'
|
||||||
)
|
)
|
||||||
|
|
||||||
gateway = input('Enter your gateway (router) IP address or leave blank for none: ').strip()
|
if gateway = input('Enter your gateway (router) IP address or leave blank for none: ').strip()
|
||||||
dns = input('Enter your DNS servers (space separated, blank for none): ').strip().split(' ')
|
|
||||||
|
dns = None
|
||||||
|
if len(dns := input('Enter your DNS servers (space separated, blank for none): ').strip()):
|
||||||
|
dns = dns.split(' ')
|
||||||
|
|
||||||
archinstall.storage['_guided']['network'] = {'nic': nic, 'dhcp': False, 'ip': ip, 'gateway' : gateway, 'dns' : dns}
|
archinstall.storage['_guided']['network'] = {'nic': nic, 'dhcp': False, 'ip': ip, 'gateway' : gateway, 'dns' : dns}
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue