Update mud and set default peer
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user