summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-lib
diff options
context:
space:
mode:
authorkrishna <krishna@gluster.com>2011-08-10 13:00:16 +0530
committerVijay Bellur <vijay@gluster.com>2011-09-27 09:00:48 -0700
commit8b539b2a3d91df2be314665bda15bdedd898d347 (patch)
treeeaf19c2e6fd2f0d5a874273fcf33e9840374d47a /rpc/rpc-lib
parent45172a5415abc6b2f17eea74d51805ac85cc0072 (diff)
by default make option rpc-auth.addr.namelookup off.
Change-Id: I11c1d55bebfc86c634cf446c50585f6c56c02665 BUG: 3345 Reviewed-on: http://review.gluster.com/204 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'rpc/rpc-lib')
-rw-r--r--rpc/rpc-lib/src/rpcsvc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpc/rpc-lib/src/rpcsvc.c b/rpc/rpc-lib/src/rpcsvc.c
index f411fa4a7e2..125d52fc73a 100644
--- a/rpc/rpc-lib/src/rpcsvc.c
+++ b/rpc/rpc-lib/src/rpcsvc.c
@@ -2165,14 +2165,14 @@ rpcsvc_transport_check_volume_specific (dict_t *options, char *volname,
{
int namechk = RPCSVC_AUTH_REJECT;
int addrchk = RPCSVC_AUTH_REJECT;
- gf_boolean_t namelookup = _gf_true;
+ gf_boolean_t namelookup = _gf_false;
char *namestr = NULL;
int ret = 0;
if ((!options) || (!volname) || (!trans))
return RPCSVC_AUTH_REJECT;
- /* Enabled by default */
+ /* Disabled by default */
if ((dict_get (options, "rpc-auth.addr.namelookup"))) {
ret = dict_get_str (options, "rpc-auth.addr.namelookup"
, &namestr);
@@ -2204,14 +2204,14 @@ rpcsvc_transport_check_volume_general (dict_t *options, rpc_transport_t *trans)
{
int addrchk = RPCSVC_AUTH_REJECT;
int namechk = RPCSVC_AUTH_REJECT;
- gf_boolean_t namelookup = _gf_true;
+ gf_boolean_t namelookup = _gf_false;
char *namestr = NULL;
int ret = 0;
if ((!options) || (!trans))
return RPCSVC_AUTH_REJECT;
- /* Enabled by default */
+ /* Disabled by default */
if ((dict_get (options, "rpc-auth.addr.namelookup"))) {
ret = dict_get_str (options, "rpc-auth.addr.namelookup"
, &namestr);