add multi-config support

This commit is contained in:
Max Lv
2013-11-12 03:56:30 +00:00
committed by vagrant
parent 61cb96db3d
commit 4606acd773
7 changed files with 60 additions and 24 deletions
+1 -1
View File
@@ -969,7 +969,7 @@ int main (int argc, char **argv)
server_num = conf->remote_num;
for (i = 0; i < server_num; i++)
{
server_host[i] = conf->remote_host[i];
server_host[i] = conf->remote_addr[i].host;
}
}
if (server_port == NULL) server_port = conf->remote_port;