File tree 2 files changed +9
-4
lines changed
libraries/ESP8266WiFi/src
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -91,10 +91,10 @@ class WiFiClient : public Client, public SList<WiFiClient> {
91
91
virtual uint8_t connected () override ;
92
92
virtual operator bool () override ;
93
93
94
- IPAddress remoteIP ();
95
- uint16_t remotePort ();
96
- IPAddress localIP ();
97
- uint16_t localPort ();
94
+ virtual IPAddress remoteIP ();
95
+ virtual uint16_t remotePort ();
96
+ virtual IPAddress localIP ();
97
+ virtual uint16_t localPort ();
98
98
99
99
static void setLocalPortStart (uint16_t port) { _localPort = port; }
100
100
Original file line number Diff line number Diff line change @@ -278,6 +278,11 @@ class WiFiClientSecure : public WiFiClient {
278
278
void flush () override { (void )flush (0 ); }
279
279
void stop () override { (void )stop (0 ); }
280
280
281
+ IPAddress remoteIP () override { return _ctx->remoteIP (); }
282
+ uint16_t remotePort () override { return _ctx->remotePort (); }
283
+ IPAddress localIP () override { return _ctx->localIP (); }
284
+ uint16_t localPort () override { return _ctx->localPort (); }
285
+
281
286
// Allow sessions to be saved/restored automatically to a memory area
282
287
void setSession (Session *session) { _ctx->setSession (session); }
283
288
You can’t perform that action at this time.
0 commit comments