-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit 01dd9c4
committed
IPv6 support for WiFiClientSecure / ssl_client
Similar to implementation in WiFiClient, we implement WiFiClientSecure
with IPv6 support with minimal differences.
As i'm trying to keep maximum compatibility, i introduce different
behaviour if IPv6 is enabled, and backward compatible (as much as possible),
if IPv6 is not enabled.
IN future when IPv6 functions are tested well enough, it can be simplified.
This implementation tested on esp32 in following scenarios using BasicHttpClient
using https:// urls:
IPv6 true:
IPv6 only website (caveat 1) - OK
Website with A and AAAA is present (caveat 1) - OK
IPv4 only website - OK
IPv6 not enabled:
IPv6 only website - wont open (expected)
Website with A and AAAA is present - OK, opens over IPv4
IPv4 only website - OK
caveat 1 - sometimes SLAAC is slower than DHCPv4, so we might have
status WL_CONNECTED, but IPv6 global scope is not ready yet.
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>1 parent 7b27e78 commit 01dd9c4
1 file changed
+34
-12
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
63 | + | ||
63 | 64 |
| |
64 | 65 |
| |
65 | 66 |
| |
66 | 67 |
| |
67 | 68 |
| |
68 | 69 |
| |
69 | 70 |
| |
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | ||
79 | + | ||
80 | + | ||
81 | + | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | + | ||
89 | + | ||
90 | + | ||
91 | + | ||
92 | + | ||
93 | + | ||
94 | + | ||
95 | + | ||
96 | + | ||
97 | + | ||
98 | + | ||
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | ||
70 | 103 |
| |
71 | - | ||
72 | 104 |
| |
73 | 105 |
| |
74 | 106 |
| |
75 | 107 |
| |
76 | 108 |
| |
77 | - | ||
78 | - | ||
79 | - | ||
80 | - | ||
81 | - | ||
82 | 109 |
| |
83 | - | ||
84 | - | ||
85 | - | ||
86 | - | ||
87 | - | ||
88 | 110 |
| |
89 | 111 |
| |
90 | 112 |
| |
| |||
97 | 119 |
| |
98 | 120 |
| |
99 | 121 |
| |
100 | - | ||
122 | + | ||
101 | 123 |
| |
102 | 124 |
| |
103 | 125 |
| |
|
0 commit comments