diff options
Diffstat (limited to 'xlators/mgmt')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-handshake.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handshake.c b/xlators/mgmt/glusterd/src/glusterd-handshake.c index e3f949aed0b..755b7aab555 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handshake.c +++ b/xlators/mgmt/glusterd/src/glusterd-handshake.c @@ -786,8 +786,9 @@ __server_getspec (rpcsvc_request_t *req) * server, self-heal daemon etc., so that they are not inadvertently * blocked by a auth.{allow,reject} setting. The trusted volfile is not * meant for external users. + * For unix domain socket, address will be empty. */ - if (strlen (addrstr) && gf_is_local_addr (addrstr)) { + if (strlen (addrstr) == 0 || gf_is_local_addr (addrstr)) { ret = build_volfile_path (volume, filename, sizeof (filename), |