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:
4e9e3ca
)
tunnelserver: log which ADD_SUBNET was refused
author
Michael Tokarev
<mjt@tls.msk.ru>
Sun, 24 May 2009 13:23:24 +0000
(17:23 +0400)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Mon, 25 May 2009 14:55:55 +0000
(16:55 +0200)
Add some logging about refused ADD_SUBNET
(it causes subsequent client disconnect so it's
important to know which subnet was at fault).
Maybe we should just ignore it completely.
src/protocol_subnet.c
patch
|
blob
|
history
diff --git
a/src/protocol_subnet.c
b/src/protocol_subnet.c
index 3e5dadd18ece0176d819474ea1c3d326c9b6434c..d40b3a33afe255f02439953769ec8a71fbe51342 100644
(file)
--- a/
src/protocol_subnet.c
+++ b/
src/protocol_subnet.c
@@
-127,8
+127,11
@@
bool add_subnet_h(connection_t *c)
free_subnet(allowed);
}
- if(!cfg)
+ if(!cfg) {
+ logger(LOG_WARNING, _("Unauthorized %s from %s (%s) for %s"),
+ "ADD_SUBNET", c->name, c->hostname, subnetstr);
return false;
+ }
free_subnet(allowed);
}