diff options
author | Chris Buechler <cmb@pfsense.org> | 2010-01-21 18:12:18 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2010-01-21 18:12:18 -0500 |
commit | c4b4878c422bde2fb1d224043314dd503a0d8a4c (patch) | |
tree | 7fe97b19af17f41b941ed179a4df20eeb43e064b | |
parent | d86b275c79ee89e0e1f215da3800a059d94e7799 (diff) | |
download | pfsense-c4b4878c422bde2fb1d224043314dd503a0d8a4c.zip pfsense-c4b4878c422bde2fb1d224043314dd503a0d8a4c.tar.gz |
fix DHCP relay
-rw-r--r-- | etc/inc/services.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc index 91f03b1..8797994 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -507,16 +507,16 @@ function services_dhcrelay_configure() { link_interface_to_bridge($dhcrelayif)))) continue; - $dhcrelayifs[] = get_real_interface($dhcprelayif); + $dhcrelayifs[] = get_real_interface($dhcrelayif); } /* In order for the relay to work, it needs to be active on the interface in which the destination server sits */ - $dhrelayifs = get_configured_interface_list(); - foreach ($dhrelayifs as $ifname) { + $iflist = get_configured_interface_list(); + foreach ($iflist as $ifname) { $subnet = get_interface_ip($ifname) . "/" . get_interface_subnet($ifname); if (ip_in_subnet($dhcrelaycfg['server'],$subnet)) - $destif = $ifname['if']; + $destif = get_real_interface($ifname); } if (!isset($destif)) @@ -1273,4 +1273,4 @@ function upnp_start() { } } -?> +?>
\ No newline at end of file |