mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-18 02:39:44 +00:00
improve monitor-cli to allow choosing which peer to dial.
This commit is contained in:
parent
4fa63e61bc
commit
67c7c1a7c0
@ -51,8 +51,11 @@ int main(int argc, char *argv[]) {
|
||||
writeLine("monitor vomp\n");
|
||||
writeLine("monitor rhizome\n");
|
||||
|
||||
if (argc>1)
|
||||
writeLine("call * 5551 5552\n");
|
||||
if (argc>1) {
|
||||
char msg[1024];
|
||||
snprintf(msg,1024,"call %s 5551 5552\n",argv[1]);
|
||||
writeLine(msg);
|
||||
}
|
||||
|
||||
while(1) {
|
||||
poll(fds,fdcount,1000);
|
||||
|
Loading…
Reference in New Issue
Block a user