2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Merge pull request #5754 from jjohnson42/tryv6thenv4

Have xCAT client try IPv6 if IPv4 fails
This commit is contained in:
Bin Xu 2018-11-02 15:54:39 +08:00 committed by GitHub
commit 5d12e67786
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,7 +232,8 @@ sub submit_request {
$pclient = IO::Socket::INET6->new(
%connargs,
);
} else {
}
unless ($pclient) {
$pclient = IO::Socket::INET->new(
PeerAddr => $xcathost,
Timeout => 15,