diff --git a/setDNS.py b/setDNS.py index 9243ef1..c6505da 100644 --- a/setDNS.py +++ b/setDNS.py @@ -308,7 +308,7 @@ def set_dns_servers(ipv4_dns_list: list[str], ipv6_dns_list: list[str]): continue if ipv4_dns_list: logger.debug( - f"设置IPv4 DNS for {interface}:', '.join(ipv4_dns_list)}" + f"设置IPv4 DNS for {interface}:{', '.join(ipv4_dns_list)}" ) try: subprocess.run( @@ -342,8 +342,7 @@ def set_dns_servers(ipv4_dns_list: list[str], ipv6_dns_list: list[str]): logger.error(f"设置IPv4 DNS for {interface}失败: {e}") if ipv6_dns_list: logger.debug( - f"设置IPv6 DNS for {interface}: { - ', '.join(ipv6_dns_list)}" + f"设置IPv6 DNS for {interface}: { ', '.join(ipv6_dns_list)}" ) try: subprocess.run(