From 8f2573242529d335dea4783c6ac275fa980c3c75 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Tue, 29 Jul 2014 12:23:22 +0200 Subject: [PATCH] Fix link to host.cgi for resolving our own external address. --- src/meshlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meshlink.c b/src/meshlink.c index 27ba877a..2b39b730 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -192,7 +192,7 @@ static char *get_my_hostname(meshlink_handle_t* mesh) { fprintf(stderr, "Trying to discover externally visible hostname...\n"); struct addrinfo *ai = str2addrinfo("meshlink.io", "80", SOCK_STREAM); struct addrinfo *aip = ai; - static const char request[] = "GET http://meshlink.io/host.cgi HTTP/1.0\r\n\r\n"; + static const char request[] = "GET http://www.meshlink.io/host.cgi HTTP/1.0\r\n\r\n"; while(aip) { int s = socket(aip->ai_family, aip->ai_socktype, aip->ai_protocol); -- 2.39.5