diff options
author | Colin Smith <colin@pfsense.org> | 2005-02-27 16:43:22 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-02-27 16:43:22 +0000 |
commit | 4af1d26465c1764a38b16ce041322b54e4b6bf46 (patch) | |
tree | a220c8ad49b4af144cf9b8fbd752c76f6f561fca /packages/siproxd.xml | |
parent | 9b8fe31989d98af9b96d4c15d9807294aadf3a6e (diff) | |
download | pfsense-packages-4af1d26465c1764a38b16ce041322b54e4b6bf46.tar.gz pfsense-packages-4af1d26465c1764a38b16ce041322b54e4b6bf46.tar.bz2 pfsense-packages-4af1d26465c1764a38b16ce041322b54e4b6bf46.zip |
* Return interface names, not IPs.
* Add temporary workaround for dependency fetching.
Diffstat (limited to 'packages/siproxd.xml')
-rw-r--r-- | packages/siproxd.xml | 7 |
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'] != "") { |