From e4267649f4420060764cf22a6e524341557f12dc Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Thu, 3 Jul 2014 23:49:32 -0300 Subject: [PATCH] replace showmyip.com (down) with wtfismyip.com --- src/net.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/net.cpp b/src/net.cpp index d7553579..cc701f83 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -375,20 +375,29 @@ bool GetMyExternalIP(CNetAddr& ipRet) } else if (nHost == 2) { - addrConnect = CService("74.208.43.192", 80); // www.showmyip.com + //addrConnect = CService("74.208.43.192", 80); // www.showmyip.com + addrConnect = CService("54.200.182.206", 80); // wtfismyip.com if (nLookup == 1) { - CService addrIP("www.showmyip.com", 80, true); + //CService addrIP("www.showmyip.com", 80, true); + CService addrIP("wtfismyip.com", 80, true); if (addrIP.IsValid()) addrConnect = addrIP; } + /* pszGet = "GET /simple/ HTTP/1.1\r\n" "Host: www.showmyip.com\r\n" "User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)\r\n" "Connection: close\r\n" "\r\n"; + */ + pszGet = "GET /text HTTP/1.1\r\n" + "Host: wtfismyip.com\r\n" + "User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)\r\n" + "Connection: close\r\n" + "\r\n"; pszKeyword = NULL; // Returns just IP address }