fix #1598: use glusterfs daemon default port for online check
use the port where the main glusterfs daemon listens on as ping port, this one is also used by QEMU as default. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
committed by
Wolfgang Bumiller
parent
712e27f178
commit
931c35cfa0
@ -39,9 +39,8 @@ my $get_active_server = sub {
|
|||||||
my $status = 0;
|
my $status = 0;
|
||||||
|
|
||||||
if ($server && $server ne 'localhost' && $server ne '127.0.0.1' && $server ne '::1') {
|
if ($server && $server ne 'localhost' && $server ne '127.0.0.1' && $server ne '::1') {
|
||||||
|
# ping the gluster daemon default port (24007) as heuristic
|
||||||
# ping the echo port (7) without service check
|
$status = PVE::Network::tcp_ping($server, 24007, 2);
|
||||||
$status = PVE::Network::tcp_ping($server, undef, 2);
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user