- Timestamp:
- 2008-07-16T23:22:52Z (16 years ago)
- Branches:
- master
- Children:
- 9b55485
- Parents:
- 9730d72 (diff), 6a78c0e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
conf.c
r9730d72 r6738a67 45 45 conf = g_new0( conf_t, 1 ); 46 46 47 conf->iface = NULL; 47 conf->iface_in = NULL; 48 conf->iface_out = NULL; 48 49 conf->port = g_strdup( "6667" ); 49 50 conf->nofork = 0; … … 78 79 } 79 80 80 while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:h R:u:" ) ) >= 0 )81 while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:hu:" ) ) >= 0 ) 81 82 /* ^^^^ Just to make sure we skip this step from the REHASH handler. */ 82 83 { 83 84 if( opt == 'i' ) 84 85 { 85 conf->iface = g_strdup( optarg );86 conf->iface_in = g_strdup( optarg ); 86 87 } 87 88 else if( opt == 'p' ) … … 132 133 "\n" 133 134 " -I Classic/InetD mode. (Default)\n" 134 " -D Daemon mode. ( Still EXPERIMENTAL!)\n"135 " -D Daemon mode. (one process serves all)\n" 135 136 " -F Forking daemon. (one process per client)\n" 136 137 " -u Run daemon as specified user.\n" … … 146 147 return NULL; 147 148 } 148 else if( opt == 'R' )149 {150 /* We can't load the statefile yet (and should make very sure we do this151 only once), so set the filename here and load the state information152 when initializing ForkDaemon. (This option only makes sense in that153 mode anyway!) */154 ipc_master_set_statefile( optarg );155 }156 149 else if( opt == 'u' ) 157 150 { … … 203 196 else if( g_strcasecmp( ini->key, "daemoninterface" ) == 0 ) 204 197 { 205 g_free( conf->iface );206 conf->iface = g_strdup( ini->value );198 g_free( conf->iface_in ); 199 conf->iface_in = g_strdup( ini->value ); 207 200 } 208 201 else if( g_strcasecmp( ini->key, "daemonport" ) == 0 ) … … 210 203 g_free( conf->port ); 211 204 conf->port = g_strdup( ini->value ); 205 } 206 else if( g_strcasecmp( ini->key, "clientinterface" ) == 0 ) 207 { 208 g_free( conf->iface_out ); 209 conf->iface_out = g_strdup( ini->value ); 212 210 } 213 211 else if( g_strcasecmp( ini->key, "authmode" ) == 0 ) … … 258 256 { 259 257 g_strfreev( conf->migrate_storage ); 260 conf->migrate_storage = g_strsplit ( ini->value, " \t,;", -1 );258 conf->migrate_storage = g_strsplit_set( ini->value, " \t,;", -1 ); 261 259 } 262 260 else if( g_strcasecmp( ini->key, "pinginterval" ) == 0 )
Note: See TracChangeset
for help on using the changeset viewer.