Skip to content

Commit 333a689

Browse files
committed
feat(websocket): adding support for if_name when using WSS transport
1 parent 25d8423 commit 333a689

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
@@ -500,6 +500,10 @@ static esp_err_t esp_websocket_client_create_transport(esp_websocket_client_hand
500500
if (client->keep_alive_cfg.keep_alive_enable) {
501501
esp_transport_ssl_set_keep_alive(ssl, &client->keep_alive_cfg);
502502
}
503+
if (client->if_name) {
504+
esp_transport_ssl_set_interface_name(ssl, client->if_name);
505+
}
506+
503507
if (client->config->use_global_ca_store == true) {
504508
esp_transport_ssl_enable_global_ca_store(ssl);
505509
} else if (client->config->cert) {

0 commit comments

Comments
 (0)