From cf7f3ebc265b36765d872bdca895ab09a0889603 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 7 Apr 2006 22:27:23 +0000 Subject: Support FTP on bridges --- etc/inc/config.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'etc/inc') diff --git a/etc/inc/config.inc b/etc/inc/config.inc index 778e88e..8e112c0 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -1318,7 +1318,7 @@ function system_start_ftp_helpers() { /* if the ftp proxy is disabled for this interface then kill pftpx * instance and continue. note that the helpers for port forwards are * launched in a different sequence so we are filtering them out - * here by not including -c {$port} -g 8021 first. + * here by not including -c {$port} -g 8021 first. */ $port = 8021 + $interface_counter; if(isset($config['interfaces'][$ifname]['disableftpproxy'])) { @@ -1341,7 +1341,9 @@ function system_start_ftp_helpers() { $interface_counter++; } } + /* support bridged interfaces. even they need ftp mojo */ $num_bridges = find_number_of_created_bridges(); + $num_bridges++; mwexec("/usr/bin/killall ftpsesame"); for($x=0; $x<$num_bridges; $x++) { mwexec("/usr/local/sbin/ftpsesame -i bridge{$x}"); -- cgit v1.1