mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Set dhcp-ignore=tag:!known from option switch
This commit is contained in:
		| @@ -268,6 +268,9 @@ function updateDnsmasqConfig($iface,$status) | ||||
|         } | ||||
|         $config .= PHP_EOL; | ||||
|     } | ||||
|     if ($_POST['dhcp-ignore'] == "1") { | ||||
|         $config .= 'dhcp-ignore=tag:!known'.PHP_EOL; | ||||
|     } | ||||
|     file_put_contents("/tmp/dnsmasqdata", $config); | ||||
|     $msg = file_exists(RASPI_DNSMASQ_PREFIX.$iface.'.conf') ? 'updated' : 'added'; | ||||
|     system('sudo cp /tmp/dnsmasqdata '.RASPI_DNSMASQ_PREFIX.$iface.'.conf', $result); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user