chiark
/
gitweb
/
~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New peer option `-mobile': follow rapid IP address and port changes.
[tripe]
/
server
/
admin.c
diff --git
a/server/admin.c
b/server/admin.c
index df8af92b9888bb42a9a82c371601e1a3c8b08410..7fa3f0f85b8cbba34c1a0c0b545b7f975c112ec3 100644
(file)
--- a/
server/admin.c
+++ b/
server/admin.c
@@
-1258,6
+1258,7
@@
static void acmd_add(admin *a, unsigned ac, char *av[])
xfree(add->peer.tag);
add->peer.tag = xstrdup(arg);
})
xfree(add->peer.tag);
add->peer.tag = xstrdup(arg);
})
+ OPT("-mobile", { add->peer.f |= PSF_MOBILE; })
});
/* --- Make sure someone's not got there already --- */
});
/* --- Make sure someone's not got there already --- */