upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp
index b9bb95d..fe9964e 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -17,6 +17,7 @@
17#include <openssl/rand.h> 17#include <openssl/rand.h>
18#include "btfaddr.h" 18#include "btfaddr.h"
19#include "btftunnel.h" 19#include "btftunnel.h"
20#include "proxy.h"
20 21
21void ThreadReconnectCachedBtfPeers(void* parg); 22void ThreadReconnectCachedBtfPeers(void* parg);
22void ThreadMessageHandler2(void* parg); 23void ThreadMessageHandler2(void* parg);
@@ -361,6 +362,9 @@ string GetDiagnosticsText()
361 362
362bool GetMyExternalIP(unsigned int& ipRet) 363bool GetMyExternalIP(unsigned int& ipRet)
363{ 364{
365 if (BtfSocks5ProxyEnabled())
366 return error("GetMyExternalIP() skipped while SOCKS5 proxy is enabled\n");
367
364 // Try several plain-text IP echo services in order. 368 // Try several plain-text IP echo services in order.
365 // Each returns just the IPv4 address as the first line of the HTTP body. 369 // Each returns just the IPv4 address as the first line of the HTTP body.
366 struct { const char* host; const char* path; } services[] = { 370 struct { const char* host; const char* path; } services[] = {