Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
619c5a9e2e
  1. 23
      iguana/SuperNET.c

23
iguana/SuperNET.c

@ -360,15 +360,18 @@ int32_t _req_socket(struct supernet_info *myinfo,uint16_t LBport,uint16_t PUBpor
int32_t badass_servers(char servers[][MAX_SERVERNAME],int32_t max) int32_t badass_servers(char servers[][MAX_SERVERNAME],int32_t max)
{ {
int32_t n = 0; int32_t n = 0;
strcpy(servers[n++],"89.248.160.237"); if ( 0 )
strcpy(servers[n++],"89.248.160.238"); {
strcpy(servers[n++],"89.248.160.239"); strcpy(servers[n++],"89.248.160.237");
strcpy(servers[n++],"89.248.160.240"); strcpy(servers[n++],"89.248.160.238");
strcpy(servers[n++],"89.248.160.241"); strcpy(servers[n++],"89.248.160.239");
strcpy(servers[n++],"89.248.160.242"); strcpy(servers[n++],"89.248.160.240");
strcpy(servers[n++],"89.248.160.243"); strcpy(servers[n++],"89.248.160.241");
strcpy(servers[n++],"89.248.160.244"); strcpy(servers[n++],"89.248.160.242");
strcpy(servers[n++],"89.248.160.245"); strcpy(servers[n++],"89.248.160.243");
strcpy(servers[n++],"89.248.160.244");
strcpy(servers[n++],"89.248.160.245");
}
return(n); return(n);
} }
@ -462,7 +465,7 @@ void SuperNET_init(struct supernet_info *myinfo,uint16_t PUBport,uint16_t LBport
else free(ipaddr), ipaddr = 0; else free(ipaddr), ipaddr = 0;
} }
sendtimeout = 100; sendtimeout = 100;
recvtimeout = 1000; recvtimeout = 0;
myinfo->PUBpoint[0] = myinfo->LBpoint[0] = 0; myinfo->PUBpoint[0] = myinfo->LBpoint[0] = 0;
myinfo->PUBport = myinfo->LBport = 0; myinfo->PUBport = myinfo->LBport = 0;
myinfo->PUBsock = myinfo->LBsock = -1; myinfo->PUBsock = myinfo->LBsock = -1;

Loading…
Cancel
Save