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