From 27533473d33f8328155cec14cf469c89584aa287 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 11 Oct 2017 05:59:38 +0300 Subject: [PATCH] Remove need for win to call curl --- iguana/exchanges/LP_nativeDEX.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 3e1189b98..95d382d12 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -21,7 +21,7 @@ // // SPV at tx level and limit SPV proofing - +// coins file // stats, fix pricearray // sign packets // dPoW security @@ -653,6 +653,7 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,uint16_t mybu portable_mutex_init(&LP_messagemutex); portable_mutex_init(&LP_portfoliomutex); portable_mutex_init(&LP_butxomutex); +#ifndef _WIN32 if ( system("curl -s4 checkip.amazonaws.com > DB/myipaddr") == 0 ) { char ipfname[64]; @@ -665,6 +666,9 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,uint16_t mybu strcpy(LP_myipaddr,myipaddr); } else printf("error getting myipaddr\n"); } else printf("error issuing curl\n"); +#else + myipaddr = clonestr("127.0.0.1"); +#endif if ( IAMLP != 0 ) { pubsock = -1;