Update mud and set default peer

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2018-01-24 10:15:36 +00:00
parent 6ce92e43ac
commit ecdaeaf368
2 changed files with 7 additions and 2 deletions

View File

@@ -358,12 +358,17 @@ main(int argc, char **argv)
*p++ = 0;
if (mud_peer(mud, name, gt.host, gt.port, 0)) {
perror("mud_peer");
perror("mud_peer (bind)");
return 1;
}
name = p;
}
} else {
if (mud_peer(mud, NULL, gt.host, gt.port, 0)) {
perror("mud_peer");
return 1;
}
}
}