summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2015-07-01 16:09:10 -0400
committerjim-p <jimp@pfsense.org>2015-07-01 16:10:33 -0400
commitbc5c2e542c7a89ae59f079540ee6fc8f4183b9aa (patch)
tree996ba49f6562976508c51f8e54bacbce5aa5fe34 /etc/inc
parent71ffb7bbe2323c0d6c368f67e2b05f8947a8d0b4 (diff)
downloadpfsense-bc5c2e542c7a89ae59f079540ee6fc8f4183b9aa.zip
pfsense-bc5c2e542c7a89ae59f079540ee6fc8f4183b9aa.tar.gz
Improve handling of port ranges in relayd, fixes #4810
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/vslb.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/vslb.inc b/etc/inc/vslb.inc
index d0c5244..683fac5 100644
--- a/etc/inc/vslb.inc
+++ b/etc/inc/vslb.inc
@@ -311,13 +311,17 @@ function relayd_configure($kill_first=false) {
for ($k = 0; $k < count($src_port_array) && $k < count($dest_port_array); $k += 1) {
$src_port = $src_port_array[$k];
$dest_port = $dest_port_array[$k];
+ if (is_portrange($dest_port)) {
+ $dest_ports = explode(':', $dest_port);
+ $dest_port = $dest_ports[0];
+ }
$name = $vs_a[$i]['name'];
if ($append_ip_to_name) {
$name .= "_" . $j;
}
if ($append_port_to_name) {
- $name .= "_" . $src_port;
+ $name .= "_" . str_replace(":", "_", $src_port);
}
if (($vs_a[$i]['mode'] == 'relay') || ($vs_a[$i]['relay_protocol'] == 'dns')) {
OpenPOWER on IntegriCloud