Changeset c821e8a for conf.c


Ignore:
Timestamp:
2008-06-02T12:58:57Z (16 years ago)
Author:
ulim <a.sporto+bee@…>
Branches:
master
Children:
3355a82
Parents:
cce0450 (diff), de8e584 (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.
Message:

merged in upstream r384. No conflicts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • conf.c

    rcce0450 rc821e8a  
    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;
     
    8384                if( opt == 'i' )
    8485                {
    85                         conf->iface = g_strdup( optarg );
     86                        conf->iface_in = g_strdup( optarg );
    8687                }
    8788                else if( opt == 'p' )
     
    132133                                "\n"
    133134                                "  -I  Classic/InetD mode. (Default)\n"
    134                                 "  -D  Daemon mode. (Still EXPERIMENTAL!)\n"
     135                                "  -D  Daemon mode. (one process serves all)\n"
    135136                                "  -F  Forking daemon. (one process per client)\n"
    136137                                "  -u  Run daemon as specified user.\n"
     
    203204                        else if( g_strcasecmp( ini->key, "daemoninterface" ) == 0 )
    204205                        {
    205                                 g_free( conf->iface );
    206                                 conf->iface = g_strdup( ini->value );
     206                                g_free( conf->iface_in );
     207                                conf->iface_in = g_strdup( ini->value );
    207208                        }
    208209                        else if( g_strcasecmp( ini->key, "daemonport" ) == 0 )
     
    210211                                g_free( conf->port );
    211212                                conf->port = g_strdup( ini->value );
     213                        }
     214                        else if( g_strcasecmp( ini->key, "clientinterface" ) == 0 )
     215                        {
     216                                g_free( conf->iface_out );
     217                                conf->iface_out = g_strdup( ini->value );
    212218                        }
    213219                        else if( g_strcasecmp( ini->key, "authmode" ) == 0 )
Note: See TracChangeset for help on using the changeset viewer.