chiark / gitweb /
New peer option `-mobile': follow rapid IP address and port changes.
[tripe] / server / admin.c
index df8af92b9888bb42a9a82c371601e1a3c8b08410..7fa3f0f85b8cbba34c1a0c0b545b7f975c112ec3 100644 (file)
@@ -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 --- */