Skip to content

Commit 15ae280

Browse files
authored
Merge pull request #608 from johanstokking/feature/websocket/tls_keepalive_ifname
feat(websocket): adding support for `if_name` when using WSS transport
2 parents e6f9fe2 + 333a689 commit 15ae280

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/esp_websocket_client/esp_websocket_client.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,10 @@ static esp_err_t esp_websocket_client_create_transport(esp_websocket_client_hand
501501
if (client->keep_alive_cfg.keep_alive_enable) {
502502
esp_transport_ssl_set_keep_alive(ssl, &client->keep_alive_cfg);
503503
}
504+
if (client->if_name) {
505+
esp_transport_ssl_set_interface_name(ssl, client->if_name);
506+
}
507+
504508
if (client->config->use_global_ca_store == true) {
505509
esp_transport_ssl_enable_global_ca_store(ssl);
506510
} else if (client->config->cert) {

0 commit comments

Comments
 (0)