Commit 359214cb authored by Leigh B. Stoller's avatar Leigh B. Stoller

Minor change to insecure mode; allow local node redirect all the time.

This might be how I do preconfig.
parent a772af05
......@@ -1074,11 +1074,9 @@ handle_request(int sock, struct sockaddr_in *client, char *rdata, int istcp)
}
/*
* Redirect is allowed from the local host only!
* I use this for testing. See below where I test redirect
* if the verification fails.
* Redirect is allowed from the local host only.
*/
if (!insecure && redirect &&
if (redirect &&
redirect_client.sin_addr.s_addr != myipaddr.s_addr) {
char buf1[32], buf2[32];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment