git://git.novaco.in
/
novacoin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix MinGW compilation issues.
[novacoin.git]
/
src
/
net.cpp
diff --git
a/src/net.cpp
b/src/net.cpp
index
e1ac9a2
..
fa2bf44
100644
(file)
--- 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<uint64_t>::max();
const char *srv;
int rc = GetExternalIPbySTUN(rnd, &mapped, &srv);
if(rc >= 0) {