From b8e59a20826b18aadb6a532964a7ef5d5f689fdc Mon Sep 17 00:00:00 2001 From: Patrik Weiskircher Date: Sat, 1 May 2004 10:23:16 +0000 Subject: [PATCH] Added check to ignore Port value if Initiator is FALSE. Remote router coudln't connect if Port was set. --- apps/silcd/serverconfig.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/silcd/serverconfig.c b/apps/silcd/serverconfig.c index 26e78ae9..45ef86f7 100644 --- a/apps/silcd/serverconfig.c +++ b/apps/silcd/serverconfig.c @@ -1404,6 +1404,12 @@ static bool silc_server_config_check(SilcServerConfig config) "same host.", r->host)); ret = FALSE; } + + if (r->initiator == FALSE && r->port != 0) { + SILC_SERVER_LOG_WARNING(("\nWarning: Initiator is FALSE and Port is " + "specified. Ignoring Port value.")); + r->port = 0; + } } /* ServerConnection sanity checks */ -- 2.43.0