File tree Expand file tree Collapse file tree
ports/espressif/common-hal/socketpool Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -377,8 +377,8 @@ void common_hal_socketpool_socket_close(socketpool_socket_obj_t *self) {
377377void common_hal_socketpool_socket_connect (socketpool_socket_obj_t * self ,
378378 const char * host , size_t hostlen , uint32_t port ) {
379379 const struct addrinfo hints = {
380- .ai_family = AF_INET ,
381- .ai_socktype = SOCK_STREAM ,
380+ .ai_family = self -> family ,
381+ .ai_socktype = self -> type ,
382382 };
383383 struct addrinfo * result_i ;
384384 int error = lwip_getaddrinfo (host , NULL , & hints , & result_i );
@@ -607,8 +607,8 @@ mp_uint_t common_hal_socketpool_socket_sendto(socketpool_socket_obj_t *self,
607607
608608 // Set parameters
609609 const struct addrinfo hints = {
610- .ai_family = AF_INET ,
611- .ai_socktype = SOCK_STREAM ,
610+ .ai_family = self -> family ,
611+ .ai_socktype = self -> type ,
612612 };
613613 struct addrinfo * result_i ;
614614 int error = lwip_getaddrinfo (host , NULL , & hints , & result_i );
You can’t perform that action at this time.
0 commit comments