diff options
author | Pavan T C <tcp@gluster.com> | 2011-03-28 03:50:29 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-03-29 04:14:35 -0700 |
commit | b65f54c9aa1e3405b731769e56460592ba69ed60 (patch) | |
tree | 68be148f4f5d5b31d90a4b7062aa0f3072695942 /rpc | |
parent | b691214fd9114e2b4c7d419ef06aedd28614127a (diff) |
Loosen restrictions on hostnames
Signed-off-by: Pavan T C <tcp@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 2249 (Problems with hostname validation)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2249
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/rpc-lib/src/rpc-transport.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rpc/rpc-lib/src/rpc-transport.c b/rpc/rpc-lib/src/rpc-transport.c index e8b56678b..87011470b 100644 --- a/rpc/rpc-lib/src/rpc-transport.c +++ b/rpc/rpc-lib/src/rpc-transport.c @@ -388,9 +388,12 @@ __volume_option_value_validate (char *name, break; case GF_OPTION_TYPE_INTERNET_ADDRESS: { - if (valid_internet_address (pair->value->data)) { - ret = 0; + if (!valid_internet_address (pair->value->data)) { + gf_log (name, GF_LOG_ERROR, + "internet address '%s' does not conform to" + "standards.", pair->value->data); } + ret = 0; } break; case GF_OPTION_TYPE_ANY: |