Browse Source

333

win-cross^2
ca333 7 years ago
parent
commit
57a84cf1c0
  1. 8
      iguana/exchanges/LP_nativeDEX.c

8
iguana/exchanges/LP_nativeDEX.c

@ -603,7 +603,12 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,uint16_t mybu
portable_mutex_init(&LP_portfoliomutex); portable_mutex_init(&LP_portfoliomutex);
LP_sessionid = (uint32_t)time(NULL); LP_sessionid = (uint32_t)time(NULL);
printf("getting myipaddr sessionid.%u\n",LP_sessionid); printf("getting myipaddr sessionid.%u\n",LP_sessionid);
#ifdef _WIN32
if ( system(".\curl.exe -s4 checkip.amazonaws.com > ~\Temp") == 0 )
#else
if ( system("curl -s4 checkip.amazonaws.com > /tmp/myipaddr") == 0 ) if ( system("curl -s4 checkip.amazonaws.com > /tmp/myipaddr") == 0 )
#endif
{ {
if ( (myipaddr= OS_filestr(&filesize,"/tmp/myipaddr")) != 0 && myipaddr[0] != 0 ) if ( (myipaddr= OS_filestr(&filesize,"/tmp/myipaddr")) != 0 && myipaddr[0] != 0 )
{ {
@ -680,6 +685,3 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,uint16_t mybu
usleep(1000000 / MAINLOOP_PERSEC); usleep(1000000 / MAINLOOP_PERSEC);
} }
} }

Loading…
Cancel
Save