summaryrefslogtreecommitdiff
path: root/opentracker.c
diff options
context:
space:
mode:
authorerdgeist <>2008-10-26 12:01:58 +0000
committererdgeist <>2008-10-26 12:01:58 +0000
commit529919ac83732e2a5f03683c769fceff7f41f76a (patch)
treeeef9e1e6615be489ee28678c996bc07cd79a1be1 /opentracker.c
parentc7bc370b27f1eaea501d57ae9f3a94fad0e4f4d6 (diff)
Fix: blacklist and whitelist config option parsing code was the wrong way
Diffstat (limited to 'opentracker.c')
-rw-r--r--opentracker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opentracker.c b/opentracker.c
index 212e277..a831b06 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -328,10 +328,10 @@ int parse_configfile( char * config_filename ) {
328 if( !scan_ip4_port( p+11, tmpip, &tmpport )) goto parse_error; 328 if( !scan_ip4_port( p+11, tmpip, &tmpport )) goto parse_error;
329 ot_try_bind( tmpip, tmpport, FLAG_UDP ); 329 ot_try_bind( tmpip, tmpport, FLAG_UDP );
330 ++bound; 330 ++bound;
331#ifdef WANT_ACCESSLIST_BLACK 331#ifdef WANT_ACCESSLIST_WHITE
332 } else if(!byte_diff(p, 16, "access.whitelist" ) && isspace(p[16])) { 332 } else if(!byte_diff(p, 16, "access.whitelist" ) && isspace(p[16])) {
333 set_config_option( &g_accesslist_filename, p+17 ); 333 set_config_option( &g_accesslist_filename, p+17 );
334#elif defined( WANT_ACCESSLIST_WHITE ) 334#elif defined( WANT_ACCESSLIST_BLACK )
335 } else if(!byte_diff(p, 16, "access.blacklist" ) && isspace(p[16])) { 335 } else if(!byte_diff(p, 16, "access.blacklist" ) && isspace(p[16])) {
336 set_config_option( &g_accesslist_filename, p+17 ); 336 set_config_option( &g_accesslist_filename, p+17 );
337#endif 337#endif