diff options
Diffstat (limited to 'src/net.cpp')
| -rw-r--r-- | src/net.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp index 4741f09..bb05259 100644 --- a/src/net.cpp +++ b/src/net.cpp | |||
| @@ -2119,7 +2119,7 @@ bool StartNode(string& strError) | |||
| 2119 | if (addrIncoming.ip) | 2119 | if (addrIncoming.ip) |
| 2120 | addrLocalHost.ip = addrIncoming.ip; | 2120 | addrLocalHost.ip = addrIncoming.ip; |
| 2121 | 2121 | ||
| 2122 | _beginthread([](void*) { | 2122 | if (_beginthread([](void*) { |
| 2123 | unsigned int ip = addrLocalHost.ip; | 2123 | unsigned int ip = addrLocalHost.ip; |
| 2124 | if (GetMyExternalIP(ip)) { | 2124 | if (GetMyExternalIP(ip)) { |
| 2125 | addrLocalHost.ip = ip; | 2125 | addrLocalHost.ip = ip; |
| @@ -2127,7 +2127,8 @@ bool StartNode(string& strError) | |||
| 2127 | CWalletDB().WriteSetting("addrIncoming", addrIncoming); | 2127 | CWalletDB().WriteSetting("addrIncoming", addrIncoming); |
| 2128 | printf("External IP updated: %s\n", addrLocalHost.ToStringIP().c_str()); | 2128 | printf("External IP updated: %s\n", addrLocalHost.ToStringIP().c_str()); |
| 2129 | } | 2129 | } |
| 2130 | }, 0, NULL); | 2130 | }, 0, NULL) == (uintptr_t)-1) |
| 2131 | printf("Error: _beginthread(GetMyExternalIP) failed\n"); | ||
| 2131 | 2132 | ||
| 2132 | // Peers that answered last time, dialled straight away. The relays are the | 2133 | // Peers that answered last time, dialled straight away. The relays are the |
| 2133 | // only way to find anyone otherwise, and reaching them plus walking their | 2134 | // only way to find anyone otherwise, and reaching them plus walking their |