Remove tracker ip check
parent
5d0d1ef531
commit
dc3bf125a4
|
|
@ -1060,7 +1060,6 @@ int storage_func_init(const char *filename, \
|
||||||
int64_t rotate_access_log_size;
|
int64_t rotate_access_log_size;
|
||||||
int64_t rotate_error_log_size;
|
int64_t rotate_error_log_size;
|
||||||
ConnectionInfo *pServer;
|
ConnectionInfo *pServer;
|
||||||
ConnectionInfo *pEnd;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
while (nThreadCount > 0)
|
while (nThreadCount > 0)
|
||||||
|
|
@ -1170,27 +1169,6 @@ int storage_func_init(const char *filename, \
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
pEnd = g_tracker_group.servers + g_tracker_group.server_count;
|
|
||||||
for (pServer=g_tracker_group.servers; pServer<pEnd; pServer++)
|
|
||||||
{
|
|
||||||
//printf("server=%s:%d\n", pServer->ip_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);
|
pGroupName = iniGetStrValue(NULL, "group_name", &iniContext);
|
||||||
if (pGroupName == NULL)
|
if (pGroupName == NULL)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue