Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • conf.c

    rdd14ecc rde8e584  
    4545        conf = g_new0( conf_t, 1 );
    4646       
    47         conf->iface = NULL;
     47        conf->iface_in = NULL;
     48        conf->iface_out = NULL;
    4849        conf->port = g_strdup( "6667" );
    4950        conf->nofork = 0;
     
    8283                if( opt == 'i' )
    8384                {
    84                         conf->iface = g_strdup( optarg );
     85                        conf->iface_in = g_strdup( optarg );
    8586                }
    8687                else if( opt == 'p' )
     
    131132                                "\n"
    132133                                "  -I  Classic/InetD mode. (Default)\n"
    133                                 "  -D  Daemon mode. (Still EXPERIMENTAL!)\n"
     134                                "  -D  Daemon mode. (one process serves all)\n"
    134135                                "  -F  Forking daemon. (one process per client)\n"
    135136                                "  -u  Run daemon as specified user.\n"
     
    202203                        else if( g_strcasecmp( ini->key, "daemoninterface" ) == 0 )
    203204                        {
    204                                 g_free( conf->iface );
    205                                 conf->iface = g_strdup( ini->value );
     205                                g_free( conf->iface_in );
     206                                conf->iface_in = g_strdup( ini->value );
    206207                        }
    207208                        else if( g_strcasecmp( ini->key, "daemonport" ) == 0 )
     
    209210                                g_free( conf->port );
    210211                                conf->port = g_strdup( ini->value );
     212                        }
     213                        else if( g_strcasecmp( ini->key, "clientinterface" ) == 0 )
     214                        {
     215                                g_free( conf->iface_out );
     216                                conf->iface_out = g_strdup( ini->value );
    211217                        }
    212218                        else if( g_strcasecmp( ini->key, "authmode" ) == 0 )
Note: See TracChangeset for help on using the changeset viewer.