diff options
author | erdgeist <> | 2008-10-06 11:42:03 +0000 |
---|---|---|
committer | erdgeist <> | 2008-10-06 11:42:03 +0000 |
commit | fae73214af69b5d4f649e74b7b6920ff8229a852 (patch) | |
tree | 75da680c2a030fe1ea4b830ebb9928d88ae37e52 /opentracker.c | |
parent | 07dbc879867742c2d8bc5383904b3c51ff4e1dd6 (diff) |
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.
Diffstat (limited to 'opentracker.c')
-rw-r--r-- | opentracker.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 ) { | |||
312 | /* Scan for commands */ | 312 | /* Scan for commands */ |
313 | if(!byte_diff(p,15,"tracker.rootdir" ) && isspace(p[15])) { | 313 | if(!byte_diff(p,15,"tracker.rootdir" ) && isspace(p[15])) { |
314 | set_config_option( &g_serverdir, p+16 ); | 314 | set_config_option( &g_serverdir, p+16 ); |
315 | } else if(!byte_diff(p,14,"listen.tcp_udp" ) && isspace(p[14])) { | ||
316 | uint16_t tmpport = 6969; | ||
317 | if( !scan_ip4_port( p+15, tmpip, &tmpport )) goto parse_error; | ||
318 | ot_try_bind( tmpip, tmpport, FLAG_TCP ); ++bound; | ||
319 | ot_try_bind( tmpip, tmpport, FLAG_UDP ); ++bound; | ||
315 | } else if(!byte_diff(p,10,"listen.tcp" ) && isspace(p[10])) { | 320 | } else if(!byte_diff(p,10,"listen.tcp" ) && isspace(p[10])) { |
316 | uint16_t tmpport = 6969; | 321 | uint16_t tmpport = 6969; |
317 | if( !scan_ip4_port( p+11, tmpip, &tmpport )) goto parse_error; | 322 | if( !scan_ip4_port( p+11, tmpip, &tmpport )) goto parse_error; |