X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fnet.cpp;h=fa2bf44d58efe2c2c87e93da303962137a172b3e;hp=e1ac9a25348d89e2405427801c5b7db9cede69be;hb=3814af1ef1a10f25e7a76929edfd3abdb0ab791d;hpb=ce2bd54eb512e1ee9d2f9d9e760b34ff4187d94f diff --git a/src/net.cpp b/src/net.cpp index e1ac9a2..fa2bf44 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -307,7 +307,7 @@ extern int GetExternalIPbySTUN(uint64_t rnd, struct sockaddr_in *mapped, const c bool GetMyExternalIP(CNetAddr& ipRet) { struct sockaddr_in mapped; - uint64_t rnd = UINT64_MAX; + uint64_t rnd = std::numeric_limits::max(); const char *srv; int rc = GetExternalIPbySTUN(rnd, &mapped, &srv); if(rc >= 0) {