Skip to content

Commit

Permalink
[=] revert unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanmei-Liu committed Dec 4, 2024
1 parent 36b7cc5 commit 3e6ca43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/demo_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1828,7 +1828,7 @@ xqc_demo_cli_parse_server_addr(char *url, xqc_demo_cli_net_config_t *cfg)
/* set hint for hostname resolve */
struct addrinfo hints = {0};
memset(&hints, 0, sizeof(struct addrinfo));
hints.ai_family = AF_INET; //AF_UNSPEC; /* Allow IPv4 or IPv6 */
hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6: set to AF_INET if only using IPv4 */
hints.ai_socktype = SOCK_DGRAM; /* Datagram socket */
hints.ai_flags = AI_PASSIVE; /* For wildcard IP address */
hints.ai_protocol = 0; /* Any protocol */
Expand Down

0 comments on commit 3e6ca43

Please sign in to comment.