aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/siproxd.xml7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/siproxd.xml b/packages/siproxd.xml
index 1e4903a1..f1f7bbd2 100644
--- a/packages/siproxd.xml
+++ b/packages/siproxd.xml
@@ -103,7 +103,8 @@
<description>Enter the port of the outbound proxy to send all traffic to. This is only useful if you have multiple masquerading firewalls to cross.</description>
</field>
</fields>
- <custom_php_install_command>
+ <custom_php_install_command
+ mwexec("pkg_add -rv libosip2");
mwexec("rm /usr/local/etc/rc.d/siproxd.sh");
$fout = fopen("/usr/local/etc/rc.d/siproxd.sh","w");
fwrite($fout, "#!/bin/sh\n\n/usr/local/sbin/siproxd\n");
@@ -117,11 +118,11 @@
$fout = fopen("/usr/local/etc/siproxd.conf","w");
fwrite($fout, "# This file was automatically generated by the pfSense\n# package management system.\n\n");
if($_POST['if_inbound'] != "") {
- $if_inbound = find_interface_ip($_POST['if_inbound']);
+ $if_inbound = $if_inbound = $config['interfaces'][$_POST['if_inbound']]['if'];
fwrite($fout, "if_inbound = " . $if_inbound . "\n");
}
if($_POST['if_outbound'] != "") {
- $if_outbound = find_interface_ip($_POST['if_outbound']);
+ $if_outbound = $if_outbound = $config['interfaces'][$_POST['if_outbound']]['if'];
fwrite($fout, "if_outbound = " . $if_outbound . "\n\n");
}
if($_POST['port'] != "") {