diff options
Diffstat (limited to 'config/imspector/imspector.inc')
-rw-r--r-- | config/imspector/imspector.inc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/config/imspector/imspector.inc b/config/imspector/imspector.inc index 09974363..ea4458ce 100644 --- a/config/imspector/imspector.inc +++ b/config/imspector/imspector.inc @@ -104,6 +104,23 @@ //exec('pkg_delete imspector-0.4'); } + function imspector_generate_rules($type) { + + $rules = ""; + switch ($type) { + case 'rdr': + $rules = "# IMSpector rdr anchor\n"; + $rules .= "rdr-anchor \"imspector\"\n"; + break; + case 'rule': + $rules = "# IMSpector \n"; + $rules .= "anchor \"miniupnpd\"\n"; + break; + } + + return $rules; + } + function sync_package_imspector() { global $config; global $input_errors; |