Changes in conf.c [aaf92a9:2c2df7d]
Legend:
- Unmodified
- Added
- Removed
-
conf.c
raaf92a9 r2c2df7d 63 63 conf->ping_interval = 180; 64 64 conf->ping_timeout = 300; 65 conf-> user = NULL;65 conf->max_filetransfer_size = G_MAXUINT; 66 66 proxytype = 0; 67 67 … … 77 77 } 78 78 79 while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:hR: u:" ) ) >= 0 )79 while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:hR:" ) ) >= 0 ) 80 80 /* ^^^^ Just to make sure we skip this step from the REHASH handler. */ 81 81 { … … 133 133 " -D Daemon mode. (Still EXPERIMENTAL!)\n" 134 134 " -F Forking daemon. (one process per client)\n" 135 " -u Run daemon as specified user.\n"136 135 " -P Specify PID-file (not for inetd mode)\n" 137 136 " -i Specify the interface (by IP address) to listen on.\n" … … 153 152 ipc_master_set_statefile( optarg ); 154 153 } 155 else if( opt == 'u' )156 {157 g_free( conf->user );158 conf->user = g_strdup( optarg );159 }160 154 } 161 155 … … 199 193 else if( g_strcasecmp( ini->key, "daemoninterface" ) == 0 ) 200 194 { 201 g_free( conf->iface );202 195 conf->iface = g_strdup( ini->value ); 203 196 } 204 197 else if( g_strcasecmp( ini->key, "daemonport" ) == 0 ) 205 198 { 206 g_free( conf->port );207 199 conf->port = g_strdup( ini->value ); 208 200 } … … 218 210 else if( g_strcasecmp( ini->key, "authpassword" ) == 0 ) 219 211 { 220 g_free( conf->auth_pass );221 212 conf->auth_pass = g_strdup( ini->value ); 222 213 } 223 214 else if( g_strcasecmp( ini->key, "operpassword" ) == 0 ) 224 215 { 225 g_free( conf->oper_pass );226 216 conf->oper_pass = g_strdup( ini->value ); 227 217 } 228 218 else if( g_strcasecmp( ini->key, "hostname" ) == 0 ) 229 219 { 230 g_free( conf->hostname );231 220 conf->hostname = g_strdup( ini->value ); 232 221 } … … 293 282 g_free( url ); 294 283 } 295 else if( g_strcasecmp( ini->key, "user" ) == 0 )296 {297 g_free( conf->user );298 conf->user = g_strdup( ini->value );299 }300 284 else 301 285 {
Note: See TracChangeset
for help on using the changeset viewer.