diff options
Diffstat (limited to 'src/net.cpp')
| -rw-r--r-- | src/net.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp index b6b990a..c24547e 100644 --- a/src/net.cpp +++ b/src/net.cpp | |||
| @@ -19,6 +19,7 @@ | |||
| 19 | #include <openssl/rand.h> | 19 | #include <openssl/rand.h> |
| 20 | #include "btfaddr.h" | 20 | #include "btfaddr.h" |
| 21 | #include "btftunnel.h" | 21 | #include "btftunnel.h" |
| 22 | #include "proxy.h" | ||
| 22 | 23 | ||
| 23 | void ThreadReconnectCachedBtfPeers(void* parg); | 24 | void ThreadReconnectCachedBtfPeers(void* parg); |
| 24 | void ThreadMessageHandler2(void* parg); | 25 | void ThreadMessageHandler2(void* parg); |
| @@ -377,6 +378,9 @@ string GetDiagnosticsText() | |||
| 377 | 378 | ||
| 378 | bool GetMyExternalIP(unsigned int& ipRet) | 379 | bool GetMyExternalIP(unsigned int& ipRet) |
| 379 | { | 380 | { |
| 381 | if (BtfSocks5ProxyEnabled()) | ||
| 382 | return error("GetMyExternalIP() skipped while SOCKS5 proxy is enabled\n"); | ||
| 383 | |||
| 380 | // Try several plain-text IP echo services in order. | 384 | // Try several plain-text IP echo services in order. |
| 381 | // Each returns just the IPv4 address as the first line of the HTTP body. | 385 | // Each returns just the IPv4 address as the first line of the HTTP body. |
| 382 | struct { const char* host; const char* path; } services[] = { | 386 | struct { const char* host; const char* path; } services[] = { |