projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Delay sending the real ID request until after a proxy request is granted.
[oweals/tinc.git]
/
src
/
protocol_auth.c
diff --git
a/src/protocol_auth.c
b/src/protocol_auth.c
index 13dae1d34d495558ee6e7ed6f8e6fe06d8631cfb..46b38eb8185924bdb0636e05d7fcd6c57c9d71f1 100644
(file)
--- a/
src/protocol_auth.c
+++ b/
src/protocol_auth.c
@@
-41,9
+41,8
@@
#include "xalloc.h"
bool send_id(connection_t *c) {
#include "xalloc.h"
bool send_id(connection_t *c) {
- if(proxytype && c->outgoing)
- if(!send_proxyrequest(c))
- return false;
+ if(proxytype && c->outgoing && !c->status.proxy_passed)
+ return send_proxyrequest(c);
return send_request(c, "%d %s %d", ID, myself->connection->name,
myself->connection->protocol_version);
return send_request(c, "%d %s %d", ID, myself->connection->name,
myself->connection->protocol_version);