From 713b3b82d6bccb95ee1cdbee9f072cc81c883638 Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 30 Nov 2010 16:45:20 -0500 Subject: Add debug options --- config/siproxd.inc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'config/siproxd.inc') diff --git a/config/siproxd.inc b/config/siproxd.inc index 2a48137a..8e74143e 100644 --- a/config/siproxd.inc +++ b/config/siproxd.inc @@ -173,7 +173,16 @@ function sync_package_siproxd() { fwrite($fout, "proxy_auth_pwfile = /usr/local/etc/siproxd_passwd.cfg\n"); } - fwrite($fout, "debug_level = 0x00000000\n"); + if($siproxd_conf['debug_level'] != "") { + fwrite($fout, "debug_level = " . $siproxd_conf['debug_level'] . "\n"); + } else { + fwrite($fout, "debug_level = 0x00000000\n"); + } + + if($siproxd_conf['debug_port'] != "") { + fwrite($fout, "debug_port = " . $siproxd_conf['debug_port'] . "\n"); + } + if($siproxd_conf['outboundproxyhost'] != "") { if($siproxd_conf['outboundproxyport'] != "") { fwrite($fout, "outbound_proxy_host = " . $siproxd_conf['outboundproxyhost'] . "\n"); -- cgit v1.2.3