Cleanup AP interface configuration
(self)
| 2836 | dhcp-authoritative |
| 2837 | # Bind to specific interface only |
| 2838 | bind-interfaces |
| 2839 | # Log DHCP activity |
| 2840 | log-dhcp |
| 2841 | # Gateway option |
| 2842 | dhcp-option=3,{self.ap_ip} |
| 2843 | # DNS option (use public DNS) |
| 2844 | dhcp-option=6,8.8.8.8,8.8.4.4 |
| 2845 | # Disable DNS server to avoid conflicts |
| 2846 | port=0 |
| 2847 | """ |
| 2848 | |
| 2849 | with open('/tmp/ragnar/dnsmasq.conf', 'w') as f: |
| 2850 | f.write(config_content) |
| 2851 | |
| 2852 | if not captive: |
| 2853 | config_type = "accessory AP (no gateway/DNS — clients keep their own internet)" |
| 2854 | else: |
| 2855 | config_type = "with captive portal DNS" if dns_enabled else "DHCP-only (no DNS conflicts)" |
no test coverage detected