# HG changeset patch # User Dan # Date 1243365958 14400 # Node ID efabb54a418d62a4b5fd90d3c37e4efa6d0d3af8 # Parent 73780a159e15147018480a7c1412043ba524ef67 Core: should properly handle IPv4/IPv6 toggle preferences now diff -r 73780a159e15 -r efabb54a418d greyhound.php --- a/greyhound.php Tue May 26 15:25:30 2009 -0400 +++ b/greyhound.php Tue May 26 15:25:58 2009 -0400 @@ -25,7 +25,7 @@ // trap SIGTERM pcntl_signal(SIGTERM, 'sigterm'); pcntl_signal(SIGINT, 'sigterm'); - pcntl_signal(SIGUSR1, 'handle_refresh_signal'); + pcntl_signal(SIGHUP, 'handle_refresh_signal'); } @ini_set('display_errors', 'on'); @@ -112,25 +112,19 @@ rebuild_playlist(); // startup webserver -$ip = array(); -if ( !$enable_ipv4 && !$enable_ipv6 ) -{ - warning('Both IPv4 and IPv6 are disabled, enabling IPv4 access'); - $enable_ipv4 = true; -} if ( $public ) { if ( $enable_ipv6 ) - $ip[] = '::'; - if ( $enable_ipv4 ) - $ip[] = '0.0.0.0'; + $ip = '::'; + else + $ip = '0.0.0.0'; } else { if ( $enable_ipv6 ) - $ip[] = '::1'; - if ( $enable_ipv4 ) - $ip[] = '127.0.0.1'; + $ip = '::1'; + else + $ip = '127.0.0.1'; } $port = 7447;