From ecdaeaf368a719672f2c63d87c99fdfcfdd11f92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Wed, 24 Jan 2018 10:15:36 +0000 Subject: [PATCH] Update mud and set default peer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- mud | 2 +- src/main.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/mud b/mud index 368ab1b..a6555c8 160000 --- a/mud +++ b/mud @@ -1 +1 @@ -Subproject commit 368ab1b710aeaadf9bce79ebb675053ea4990e4c +Subproject commit a6555c8ab14bf5c59bbeb9e4ac2ce134e640c379 diff --git a/src/main.c b/src/main.c index db0015d..4df7bb2 100644 --- a/src/main.c +++ b/src/main.c @@ -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; + } } }