Skip to content

Commit

Permalink
Added GBASESERVERPORT.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 30, 2008
1 parent 4818b9b commit 41f9f1b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nph-offload.c
Expand Up @@ -919,7 +919,7 @@ static int doHttp(const char *method, list **headers)
hints.ai_flags = AI_NUMERICSERV | AI_V4MAPPED | AI_ADDRCONFIG;

struct addrinfo *dns = NULL;
if ((rc = getaddrinfo(GBASESERVER, "80", &hints, &dns)) != 0)
if ((rc = getaddrinfo(GBASESERVER, GBASESERVERPORT, &hints, &dns)) != 0)
{
debugEcho("getaddrinfo failure: %s", gai_strerror(rc));
failure("503 Service Unavailable", "Offload base server hostname lookup failure.");
Expand Down
6 changes: 6 additions & 0 deletions offload_server_config.h
Expand Up @@ -18,6 +18,12 @@
#define GBASESERVER "example.com"
#endif

// This is the port on the base server to connect to (default for HTTP is 80).
// This is a literal string, not a number! Put it in quotes.
#ifndef GBASESERVERPORT
#define GBASESERVERPORT "80"
#endif

// Time in seconds that i/o (to base server or client) should timeout in
// lieu of activity.
#ifndef GTIMEOUT
Expand Down

0 comments on commit 41f9f1b

Please sign in to comment.