Browse Source

Test

etomic
jl777 8 years ago
parent
commit
4e6b7b4db9
  1. 3
      iguana/exchanges/LP_network.c

3
iguana/exchanges/LP_network.c

@ -306,6 +306,7 @@ char *LP_psock(char *myipaddr,int32_t ispaired)
jaddnum(retjson,"ispaired",ispaired);
jaddstr(retjson,"publicaddr",pushaddr);
jaddnum(retjson,"publicport",pushport);
printf("pushaddr.(%s) for %s\n",pushaddr,subaddr);
break;
}
if ( pullsock >= 0 )
@ -413,7 +414,7 @@ int32_t LP_initpublicaddr(uint16_t *mypullportp,char *publicaddr,char *myipaddr,
}
}
}
if ( ispaired == 0 && nn_tests(pullsock,publicaddr,LP_COMMAND_SENDSOCK) < 0 )
if ( 0 && ispaired == 0 && nn_tests(pullsock,publicaddr,LP_COMMAND_SENDSOCK) < 0 )
{
printf("command socket didnt work\n");
exit(-1);

Loading…
Cancel
Save