Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

relay plugin ignores empty $ENV{RELAYCLIENT}

0 views
Skip to first unread message

frank

unread,
Jul 20, 2015, 1:45:02 AM7/20/15
to qps...@perl.org
Upgrading from a heavily customized and ancient version, I've always used
an empty $RELAYCLIENT in my tcpserver configs but the latest version
ignores the empty variable. This fixed it for me.

-frank



diff --git a/plugins/relay b/plugins/relay
index fdae3ad..6c7974b 100644
--- a/plugins/relay
+++ b/plugins/relay
@@ -230,7 +230,7 @@ sub hook_connect {
return DECLINED;
}

- if ($ENV{RELAYCLIENT}) {
+ if (defined $ENV{RELAYCLIENT}) {
$self->qp->connection->relay_client(1);
$self->log(LOGINFO, "pass, enabled by env");
return DECLINED;

0 new messages