cli: Also show remote tunnel id

This commit is contained in:
Samuel Thibault 2024-01-17 13:10:51 +01:00
parent 1f1b8d7b99
commit 58e04d8f08

1
cli.c
View file

@ -657,6 +657,7 @@ static int cmd_show_tunnels(struct cli_def *cli, const char *command, char **arg
continue;
}
cli_print(cli, "\r\nTunnel %d:", t);
cli_print(cli, "\tRemote ID:\t%d", tunnel[t].far);
cli_print(cli, "\tState:\t\t%s", states[tunnel[t].state]);
cli_print(cli, "\tHostname:\t%s", tunnel[t].hostname[0] ? tunnel[t].hostname : "(none)");
cli_print(cli, "\tRemote IP:\t%s", fmtaddr(htonl(tunnel[t].ip), 0));