diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-04-19 19:11:01 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-04-19 19:11:01 +0000 |
commit | 8a57373754f6695b839eea08cb491629daa22654 (patch) | |
tree | 6340e01e7a17dd16886d6f3eff764572bbf114fd /etc | |
parent | 418a4fa04c29310f76bd05750d6b416d79f2d5ba (diff) | |
download | pfsense-8a57373754f6695b839eea08cb491629daa22654.zip pfsense-8a57373754f6695b839eea08cb491629daa22654.tar.gz |
Nuke spaces in carp passwords, it doesnt work too well with them.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 9f79663..7ce295b 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -402,11 +402,13 @@ function interfaces_carp_configure() { } foreach ($viparr as $vip) { if ($vip['mode'] == "carp") { + $vip_password = $vip['password']; + $vip_password = str_replace(" ", "", $vip_password); /* create the carp interface and setup */ mwexec("/sbin/ifconfig carp" . $carp_instances_counter . " create"); $broadcast_address = gen_subnet_max($vip['subnet'], $vip['subnet_bits']); if($vip['password'] != "") - $password = " pass \"" . $vip['password'] . "\""; + $password = " pass \"" . $vip_password . "\""; if($debugging) echo "Configuring carp{$carp_instances_counter}.\n"; fwrite($fd, "/sbin/ifconfig carp" . $carp_instances_counter . " " . $vip['subnet'] . "/" . $vip['subnet_bits'] . " broadcast " . $broadcast_address . " vhid " . $vip['vhid'] . "{$carpdev} advskew 200 " . $password . "\n"); |