From: Guus Sliepen Date: Mon, 8 Mar 2010 20:44:32 +0000 (+0100) Subject: Log unauthorized Subnets when StrictSubnets is set. X-Git-Tag: import-tinc-1.1~558^2~2 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=f2346771cf5b22092dd3f5af3674008aa1e878d1;p=meshlink Log unauthorized Subnets when StrictSubnets is set. --- diff --git a/src/protocol_subnet.c b/src/protocol_subnet.c index c2846224..9ae491d0 100644 --- a/src/protocol_subnet.c +++ b/src/protocol_subnet.c @@ -115,6 +115,8 @@ bool add_subnet_h(connection_t *c) { /* Ignore if strictsubnets is true, but forward it to others */ if(strictsubnets) { + logger(LOG_WARNING, "Ignoring unauthorized %s from %s (%s): %s", + "ADD_SUBNET", c->name, c->hostname, subnetstr); forward_request(c); return true; }