projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
469a261
)
Allow "tinc --force join" to accept all variables sent in an invitaiton.
author
Guus Sliepen
<guus@tinc-vpn.org>
Thu, 18 Oct 2018 15:19:47 +0000
(17:19 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Thu, 18 Oct 2018 15:19:47 +0000
(17:19 +0200)
src/invitation.c
patch
|
blob
|
history
diff --git
a/src/invitation.c
b/src/invitation.c
index
411af2b
..
35f236e
100644
(file)
--- a/
src/invitation.c
+++ b/
src/invitation.c
@@
-836,8
+836,12
@@
make_names:
fprintf(stderr, "Ignoring unknown variable '%s' in invitation.\n", l);
continue;
} else if(!(variables[i].type & VAR_SAFE)) {
fprintf(stderr, "Ignoring unknown variable '%s' in invitation.\n", l);
continue;
} else if(!(variables[i].type & VAR_SAFE)) {
- fprintf(stderr, "Ignoring unsafe variable '%s' in invitation.\n", l);
- continue;
+ if(force) {
+ fprintf(stderr, "Warning: unsafe variable '%s' in invitation.\n", l);
+ } else {
+ fprintf(stderr, "Ignoring unsafe variable '%s' in invitation.\n", l);
+ continue;
+ }
}
// Copy the safe variable to the right config file
}
// Copy the safe variable to the right config file