From 12f265c2a6f2982251744c719aee39e345311627 Mon Sep 17 00:00:00 2001 From: nishi Date: Thu, 15 Feb 2024 06:05:38 +0000 Subject: [PATCH] better writing git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@227 d27a3e52-49c5-7645-884c-6793ebffc270 --- Library/DNS.c | 2 +- W3Version.h.m4 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/DNS.c b/Library/DNS.c index a253de2..8c24b52 100644 --- a/Library/DNS.c +++ b/Library/DNS.c @@ -47,7 +47,7 @@ int __W3_DNS_Connect(const char* hostname, bool ssl, uint16_t port hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; hints.ai_flags = 0; - hints.ai_protocol = 0; + hints.ai_protocol = IPPROTO_TCP; char* strport = malloc(6); /* Enough for 5 digits */ memset(strport, 0, 6); sprintf(strport, "%d", port); diff --git a/W3Version.h.m4 b/W3Version.h.m4 index 61c20f8..716fd09 100644 --- a/W3Version.h.m4 +++ b/W3Version.h.m4 @@ -6,7 +6,7 @@ extern "C" { #endif -#define LIBW3_VERSION "2.13" \ +#define LIBW3_VERSION "2.14" \ SUFFIX ifdef(`HTTP_SUPPORT', `#define LIBW3_HTTP_SUPPORT', `') -- 2.43.0