Fix infinite loop on incorrect input of gateway IP
This commit is contained in:
parent
1d37e5a49e
commit
06e846796d
|
|
@ -189,9 +189,9 @@ def ask_to_configure_network():
|
||||||
fg='red'
|
fg='red'
|
||||||
)
|
)
|
||||||
|
|
||||||
gateway = input('Enter your gateway (router) IP address or leave blank for none: ').strip()
|
|
||||||
# Implemented new check for correct gateway IP address
|
# Implemented new check for correct gateway IP address
|
||||||
while 1:
|
while 1:
|
||||||
|
gateway = input('Enter your gateway (router) IP address or leave blank for none: ').strip()
|
||||||
try:
|
try:
|
||||||
if len(gateway) == 0:
|
if len(gateway) == 0:
|
||||||
gateway = None
|
gateway = None
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue