Module: ngircd.git
Branch: master
Commit: 8927700b221ba3cffbde50005319868efbdb1f3e
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=8927700b…
Author: Alexander Barton <alex(a)barton.de>
Date: Tue Jan 18 22:45:01 2011 +0100
Allow "Port = 0" in [Server] blocks
Port number 0 marks remote servers that try to connect to this
daemon, but where this daemon never tries to establis a connection
on its own: only incoming connections are allowed.
---
src/ngircd/conf.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c
index e1fb73b..db91a57 100644
--- a/src/ngircd/conf.c
+++ b/src/ngircd/conf.c
@@ -1361,11 +1361,12 @@ Handle_SERVER( int Line, char *Var, char *Arg )
if( strcasecmp( Var, "Port" ) == 0 ) {
/* Port to which this server should connect */
port = atol( Arg );
- if( port > 0 && port < 0xFFFF )
+ if (port >= 0 && port < 0xFFFF)
New_Server.port = (UINT16)port;
else
- Config_Error( LOG_ERR, "%s, line %d (section \"Server\"): Illegal port number %ld!",
- NGIRCd_ConfFile, Line, port );
+ Config_Error(LOG_ERR,
+ "%s, line %d (section \"Server\"): Illegal port number %ld!",
+ NGIRCd_ConfFile, Line, port );
return;
}
#ifdef SSL_SUPPORT
Module: ngircd.git
Branch: master
Commit: 6600ce3445c5363c75e743a0eec173cc73d79434
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=6600ce34…
Author: Alexander Barton <alex(a)barton.de>
Date: Mon Jan 10 00:10:01 2011 +0100
Remove ZeroConf variable from sample-ngircd.conf
---
doc/sample-ngircd.conf.tmpl | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/doc/sample-ngircd.conf.tmpl b/doc/sample-ngircd.conf.tmpl
index 180bdce..58696be 100644
--- a/doc/sample-ngircd.conf.tmpl
+++ b/doc/sample-ngircd.conf.tmpl
@@ -164,10 +164,6 @@
# Use PAM if ngIRCd has been compiled with support for it.
;PAM = no
- # Use ZeroConf service registration if ngIRCd has been
- # compiled with support for it (e.g. Howl, Avahi, Mac OS X).
- ;ZeroConf = no
-
[Operator]
# [Operator] sections are used to define IRC Operators. There may be
# more than one [Operator] block, one for each local operator.