From: Guus Sliepen Date: Tue, 29 Jul 2014 10:23:22 +0000 (+0200) Subject: Fix link to host.cgi for resolving our own external address. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=8f2573242529d335dea4783c6ac275fa980c3c75;p=meshlink Fix link to host.cgi for resolving our own external address. --- 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);