diff options
| author | Alexander Barton <alex@barton.de> | 2002-03-30 13:08:10 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2002-03-30 13:08:10 +0000 |
| commit | 1c99b8377fd7afdac9170440677f6940b0995370 (patch) | |
| tree | 5075c7e68ebb904e45e40314177c695cdd00c4f1 | |
| parent | c9e8d4bbadfefaae4e1a030761b20aa479b7c9f0 (diff) | |
| download | ngircd-1c99b8377fd7afdac9170440677f6940b0995370.tar.gz ngircd-1c99b8377fd7afdac9170440677f6940b0995370.zip | |
- wenn kein ListenPort definiert ist, so wird nun 6667 als Default verwendet.
| -rw-r--r-- | src/ngircd/conf.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index c2e6f151..f558d1a5 100644 --- a/src/ngircd/conf.c +++ b/src/ngircd/conf.c @@ -9,7 +9,7 @@ * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. * - * $Id: conf.c,v 1.22 2002/03/29 23:33:05 alex Exp $ + * $Id: conf.c,v 1.23 2002/03/30 13:08:10 alex Exp $ * * conf.h: Konfiguration des ngircd */ @@ -237,6 +237,13 @@ LOCAL VOID Read_Config( VOID ) } fclose( fd ); + + /* Wenn kein Port definiert wurde, Port 6667 als Default benutzen */ + if( Conf_ListenPorts_Count < 1 ) + { + Conf_ListenPorts_Count = 1; + Conf_ListenPorts[0] = 6667; + } } /* Read_Config */ |