diff options
| author | bitflash <admin@bitflash.network> | 2026-08-12 10:31:29 -0300 |
|---|---|---|
| committer | bitflash <admin@bitflash.network> | 2026-08-12 10:31:29 -0300 |
| commit | c8d798807e69ddbe55bfab8a34286ab75b786cb5 (patch) | |
| tree | 81b5d44e5193f220b64097f496e314e04caf2db8 /src/net.cpp | |
| parent | c5f6b52c0d1d65f7bf8cd745a7a212bc6b2fe318 (diff) | |
| parent | d0ebe648f333def99fababd65f6b929448616d56 (diff) | |
test merge
# Conflicts:
# src/makefile.mingw
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[] = { |