File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
ports/espressif/common-hal/socketpool Expand file tree Collapse file tree 1 file changed +4
-4
lines changed 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) {
377
377
void common_hal_socketpool_socket_connect (socketpool_socket_obj_t * self ,
378
378
const char * host , size_t hostlen , uint32_t port ) {
379
379
const struct addrinfo hints = {
380
- .ai_family = AF_INET ,
381
- .ai_socktype = SOCK_STREAM ,
380
+ .ai_family = self -> family ,
381
+ .ai_socktype = self -> type ,
382
382
};
383
383
struct addrinfo * result_i ;
384
384
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,
607
607
608
608
// Set parameters
609
609
const struct addrinfo hints = {
610
- .ai_family = AF_INET ,
611
- .ai_socktype = SOCK_STREAM ,
610
+ .ai_family = self -> family ,
611
+ .ai_socktype = self -> type ,
612
612
};
613
613
struct addrinfo * result_i ;
614
614
int error = lwip_getaddrinfo (host , NULL , & hints , & result_i );
You can’t perform that action at this time.
0 commit comments