commit de5126589ecc841f6e9cf3384316d37b0050f021
parent e66b895109bc258f1e77ae9c4ff830dcc60c36d2
Author: Kyle Milz <krwmilz@gmail.com>
Date: Thu, 9 Sep 2021 02:56:07 +0000
popup warn not exit on host resolution failure
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/http.c b/http.c
@@ -142,8 +142,11 @@ xconnect(struct url *url)
hints.ai_socktype = SOCK_STREAM;
error = getaddrinfo(url->hostname, "https", &hints, &res0);
- if (error)
- errx(1, "%s", gai_strerror(error));
+ if (error) {
+ warning_popup_long("%s: %s", "OK", NULL, url->hostname,
+ gai_strerror(error));
+ return -1;
+ }
s = -1;
for (res = res0; res; res = res->ai_next) {