From 6327185b87d0bce1ed31a4cd1969a14f2d3ff325 Mon Sep 17 00:00:00 2001 From: yoannmultigaming Date: Tue, 17 Nov 2026 23:47:32 +0100 Subject: [PATCH] APmanageur Wi-Fi V1.0 --- ap.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ap.py b/ap.py index 62d2022..a1ea02f 100644 --- a/ap.py +++ b/ap.py @@ -4454,9 +4454,8 @@ def configure_ap(data, initial=False, caller_ip=None): if proto: modify_args += ['802-11-wireless-security.proto', proto] if sec in ('wpa2', 'wpa3'): modify_args += ['802-11-wireless-security.pairwise', 'ccmp', '802-11-wireless-security.group', 'ccmp'] - dns_servers = get_dns_servers() - if dns_servers: - modify_args += ['ipv4.dns', ' '.join(dns_servers)] + # Note : ipv4.dns est interdit par NetworkManager lorsque ipv4.method=shared. + # Les serveurs DNS (AP_DNS) sont distribués aux clients Wi-Fi via dnsmasq (ensure_dnsmasq_dns / dhcp-option=6). r = subprocess.run(modify_args, text=True, capture_output=True) if r.returncode: raise RuntimeError(r.stderr.strip() or 'NetworkManager a refusé la configuration AP')