projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't enable the device if the reachable count is zero.
[tinc]
/
src
/
tincctl.c
diff --git
a/src/tincctl.c
b/src/tincctl.c
index
2a2c488
..
f18dc50
100644
(file)
--- a/
src/tincctl.c
+++ b/
src/tincctl.c
@@
-1305,7
+1305,7
@@
char *get_my_name(bool verbose) {
continue;
if(*value) {
fclose(f);
continue;
if(*value) {
fclose(f);
- return
strdup
(value);
+ return
replace_name
(value);
}
}
}
}
@@
-1675,18
+1675,6
@@
static int cmd_config(int argc, char *argv[]) {
return 0;
}
return 0;
}
-bool check_id(const char *name) {
- if(!name || !*name)
- return false;
-
- for(int i = 0; i < strlen(name); i++) {
- if(!isalnum(name[i]) && name[i] != '_')
- return false;
- }
-
- return true;
-}
-
static bool try_bind(int port) {
struct addrinfo *ai = NULL;
struct addrinfo hint = {
static bool try_bind(int port) {
struct addrinfo *ai = NULL;
struct addrinfo hint = {