From 359214cb005434f0a4c9d8597b18ff4c50a5556d Mon Sep 17 00:00:00 2001 From: "Leigh B. Stoller" Date: Wed, 23 Sep 2009 23:37:32 +0000 Subject: [PATCH] Minor change to insecure mode; allow local node redirect all the time. This might be how I do preconfig. --- tmcd/tmcd.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tmcd/tmcd.c b/tmcd/tmcd.c index ca9011c4a..9533e8ac5 100644 --- a/tmcd/tmcd.c +++ b/tmcd/tmcd.c @@ -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]; -- GitLab