From dc3bf125a4674a0983ff1c984d1f8549f3911058 Mon Sep 17 00:00:00 2001 From: Yanlong Wang Date: Mon, 23 Jan 2017 10:26:59 +0800 Subject: [PATCH] Remove tracker ip check --- storage/storage_func.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/storage/storage_func.c b/storage/storage_func.c index dc893bad..7f289156 100644 --- a/storage/storage_func.c +++ b/storage/storage_func.c @@ -1060,7 +1060,6 @@ int storage_func_init(const char *filename, \ int64_t rotate_access_log_size; int64_t rotate_error_log_size; ConnectionInfo *pServer; - ConnectionInfo *pEnd; /* while (nThreadCount > 0) @@ -1170,27 +1169,6 @@ int storage_func_init(const char *filename, \ break; } - pEnd = g_tracker_group.servers + g_tracker_group.server_count; - for (pServer=g_tracker_group.servers; pServerip_addr, pServer->port); - if (strcmp(pServer->ip_addr, "127.0.0.1") == 0) - { - logError("file: "__FILE__", line: %d, " \ - "conf file \"%s\", " \ - "tracker: \"%s:%d\" is invalid, " \ - "tracker server ip can't be 127.0.0.1",\ - __LINE__, filename, pServer->ip_addr, \ - pServer->port); - result = EINVAL; - break; - } - } - if (result != 0) - { - break; - } - pGroupName = iniGetStrValue(NULL, "group_name", &iniContext); if (pGroupName == NULL) {