From fae73214af69b5d4f649e74b7b6920ff8229a852 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Mon, 6 Oct 2008 11:42:03 +0000 Subject: A new config file option to connect to tcp and udp at once has been added. Also some clarifications have been put into the sample config file. --- opentracker.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'opentracker.c') diff --git a/opentracker.c b/opentracker.c index 4129f08..2a746cf 100644 --- a/opentracker.c +++ b/opentracker.c @@ -312,6 +312,11 @@ int parse_configfile( char * config_filename ) { /* Scan for commands */ if(!byte_diff(p,15,"tracker.rootdir" ) && isspace(p[15])) { set_config_option( &g_serverdir, p+16 ); + } else if(!byte_diff(p,14,"listen.tcp_udp" ) && isspace(p[14])) { + uint16_t tmpport = 6969; + if( !scan_ip4_port( p+15, tmpip, &tmpport )) goto parse_error; + ot_try_bind( tmpip, tmpport, FLAG_TCP ); ++bound; + ot_try_bind( tmpip, tmpport, FLAG_UDP ); ++bound; } else if(!byte_diff(p,10,"listen.tcp" ) && isspace(p[10])) { uint16_t tmpport = 6969; if( !scan_ip4_port( p+11, tmpip, &tmpport )) goto parse_error; -- cgit v1.2.3