projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee64b8e
)
Log unauthorized Subnets when StrictSubnets is set.
author
Guus Sliepen
<guus@tinc-vpn.org>
Mon, 8 Mar 2010 20:44:32 +0000
(21:44 +0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Mon, 8 Mar 2010 20:44:32 +0000
(21:44 +0100)
src/protocol_subnet.c
patch
|
blob
|
history
diff --git
a/src/protocol_subnet.c
b/src/protocol_subnet.c
index c284622485120fa1717b08510954ae12e5954313..9ae491d0533b276ac409b87fc4be0559439d268b 100644
(file)
--- 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;
}