Skip to content

Commit ad9bd94

Browse files
committed
Wrap proxy member var declarations in #ifdef
1 parent b72b705 commit ad9bd94

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

HttpClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ HttpClient::HttpClient(Client& aClient, const char* aProxy, uint16_t aProxyPort)
2929
}
3030
#else
3131
HttpClient::HttpClient(Client& aClient)
32-
: iClient(&aClient), iProxyPort(0)
32+
: iClient(&aClient)
3333
{
3434
resetState();
3535
}

HttpClient.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,9 +440,11 @@ class HttpClient : public Client
440440
int iBodyLengthConsumed;
441441
// How far through a Content-Length header prefix we are
442442
const char* iContentLengthPtr;
443+
#ifdef PROXY_ENABLED
443444
// Address of the proxy to use, if we're using one
444445
IPAddress iProxyAddress;
445446
uint16_t iProxyPort;
447+
#endif
446448
uint32_t iHttpResponseTimeout;
447449
};
448450

0 commit comments

Comments
 (0)