summaryrefslogtreecommitdiffstats
path: root/etc
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:28 -0400
commit9195a8378002ed41b459eb8c53a208f5fc6f8d4c (patch)
treeb72dd874336e89560bdbf287cbbfa7568fed419d /etc
parent9924ebd4af1beaed58ba1f0d0041bf4fc22223f7 (diff)
downloadpfsense-9195a8378002ed41b459eb8c53a208f5fc6f8d4c.zip
pfsense-9195a8378002ed41b459eb8c53a208f5fc6f8d4c.tar.gz
Improve handling of port ranges in relayd, fixes #4810
Diffstat (limited to 'etc')
-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 b163e15..05bef31 100644
--- a/etc/inc/vslb.inc
+++ b/etc/inc/vslb.inc
@@ -305,13 +305,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