diff --git a/main.py b/main.py index e945cb3..bda86ff 100644 --- a/main.py +++ b/main.py @@ -242,8 +242,9 @@ def check_include_cloudflare(cloudflare): elif cloudflare.lower() == 'no': return False else: - return input(f"\n{yellow('Исключить IP адреса Cloudflare из итогового списка?')} ({green('yes')} " - f"- исключить, {green('Enter')} - оставить): ").strip().lower() == "yes" + return input(f"\n{yellow('Исключить IP адреса Cloudflare из итогового списка?')}" + f"\n{green('yes')} - исключить" + f"\n{green('Enter')} - оставить: ").strip().lower() == "yes" def check_dns_servers(dns_servers, dns_server_indices): @@ -368,9 +369,6 @@ def group_ips_in_subnets(filename, submask): print(f"{Style.BRIGHT}IP-адреса агрегированы до /{submask} подсети{Style.RESET_ALL}") - else: - print(f"{red('Неправильная маска подсети:')} {submask}") - except Exception as e: print(f"{red('Ошибка при обработке файла:')} {e}")