Skip to content

Commit 59b895d

Browse files
committed
Add "::1" to localhost address list.
1 parent 1587ab4 commit 59b895d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

conf/config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
// Only recommended to disable when required for debuging purposes
6969

7070
$localhosts = array( // list of local interfaces
71+
"::1",
7172
"127.0.0.1",
7273
"localhost",
7374
);

php/utility/user.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static function isLocalMode( $host = null, $port = null )
3131
{
3232
global $localhosts; global $scgi_port; global $scgi_host;
3333
if(!isset($localhosts) || !count($localhosts))
34-
$localhosts = array( "127.0.0.1", "localhost" );
34+
$localhosts = array( "::1", "127.0.0.1", "localhost" );
3535
if(is_null($port))
3636
$port = $scgi_port;
3737
if(is_null($host))

0 commit comments

Comments
 (0)