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/branches/2.8@16345 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2013-05-17 02:39:16 +00:00
parent 07da4182ab
commit 97f11587b0

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;