fix the issue with XCATHOST=ipv6-lla%eth0:3001 and remote xcatd

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16344 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2013-05-17 02:38:48 +00:00
parent b21c3d7a61
commit 2a396bc1fd

View File

@ -180,7 +180,7 @@ if (ref($request) eq 'HASH') { # the request is an array, not pure XML
$xcathost=$ENV{XCATHOST};
}
my %connargs=();
if ($xcathost =~ s/%([^\]]*)//) {
if ($xcathost =~ s/%([^\]|:]*)//) {
$connargs{PeerScope} = $1;
}
$connargs{PeerAddr} = $xcathost;