]> git.meshlink.io Git - meshlink/commitdiff
Fix link to host.cgi for resolving our own external address.
authorGuus Sliepen <guus@sliepen.org>
Tue, 29 Jul 2014 10:23:22 +0000 (12:23 +0200)
committerGuus Sliepen <guus@sliepen.org>
Tue, 29 Jul 2014 10:23:22 +0000 (12:23 +0200)
src/meshlink.c

index 27ba877a25f2358fcc9a3a2efd1e14b37160831e..2b39b73064d3b7b27e630dc434d60e5088493461 100644 (file)
@@ -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);