- Timestamp:
- 2005-12-26T14:02:47Z (19 years ago)
- Branches:
- master
- Children:
- 238f828
- Parents:
- ffea9b9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
conf.c
rffea9b9 rd25f6fc 53 53 conf->runmode = RUNMODE_INETD; 54 54 conf->authmode = AUTHMODE_OPEN; 55 conf->password = NULL; 55 conf->auth_pass = NULL; 56 conf->oper_pass = NULL; 56 57 conf->configdir = g_strdup( CONFIG ); 57 58 conf->plugindir = g_strdup( PLUGINDIR ); … … 71 72 } 72 73 73 while( ( opt = getopt( argc, argv, "i:p:nvID c:d:h" ) ) >= 0 )74 while( ( opt = getopt( argc, argv, "i:p:nvIDFc:d:h" ) ) >= 0 ) 74 75 { 75 76 if( opt == 'i' ) … … 94 95 else if( opt == 'D' ) 95 96 conf->runmode=RUNMODE_DAEMON; 97 else if( opt == 'F' ) 98 conf->runmode=RUNMODE_FORKDAEMON; 96 99 else if( opt == 'c' ) 97 100 { … … 118 121 " -I Classic/InetD mode. (Default)\n" 119 122 " -D Daemon mode. (Still EXPERIMENTAL!)\n" 123 " -F Forking daemon. (one process per client)\n" 120 124 " -i Specify the interface (by IP address) to listen on.\n" 121 125 " (Default: 0.0.0.0 (any interface))\n" … … 157 161 if( g_strcasecmp( ini->value, "daemon" ) == 0 ) 158 162 conf->runmode = RUNMODE_DAEMON; 163 else if( g_strcasecmp( ini->value, "forkdaemon" ) == 0 ) 164 conf->runmode = RUNMODE_FORKDAEMON; 159 165 else 160 166 conf->runmode = RUNMODE_INETD; … … 184 190 else if( g_strcasecmp( ini->key, "authpassword" ) == 0 ) 185 191 { 186 conf->password = g_strdup( ini->value ); 192 conf->auth_pass = g_strdup( ini->value ); 193 } 194 else if( g_strcasecmp( ini->key, "operpassword" ) == 0 ) 195 { 196 conf->oper_pass = g_strdup( ini->value ); 187 197 } 188 198 else if( g_strcasecmp( ini->key, "hostname" ) == 0 )
Note: See TracChangeset
for help on using the changeset viewer.