summaryrefslogtreecommitdiff
path: root/opentracker.c
diff options
context:
space:
mode:
Diffstat (limited to 'opentracker.c')
-rw-r--r--opentracker.c5
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;