Project

General

Profile

« Previous | Next » 

Revision 8f9bffbc

Added by Andrew Thompson almost 14 years ago

Allow custom dnsmasq options so ppl can set SRV records and such for xmpp/kerberos

View differences:

etc/inc/services.inc
1122 1122
		if(!isset($config['system']['webgui']['nodnsrebindcheck']))
1123 1123
			$dns_rebind = "--rebind-localhost-ok --stop-dns-rebind";
1124 1124

  
1125
		if ($config['dnsmasq']['custom_options']) {
1126
			$args = '';
1127
			foreach (preg_split('/\s+/', $config['dnsmasq']['custom_options']) as $c)
1128
				$args .= "--$c ";
1129
		}
1130

  
1125 1131
		/* run dnsmasq */
1126 1132
		mwexec("/usr/local/sbin/dnsmasq --local-ttl 1 --all-servers {$dns_rebind} --dns-forward-max=5000 --cache-size=10000 {$args}");
1127 1133

  

Also available in: Unified diff