Skip to content

Commit 6ff895c

Browse files
committed
Consistently use "localhost" when binding to 0.0.0.0
1 parent 2c3d9e7 commit 6ff895c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/php/xp/web/srv/Standalone.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function serve($source, $profile, $webroot, $docroot, $config, $args, $lo
5050
Console::writeLinef(
5151
"\e[33;1m>\e[0m Server started: \e[35;4mhttp://%s:%d\e[0m in %.3f seconds\n".
5252
" %s - PID %d; press Ctrl+C to exit\n",
53-
'0.0.0.0' === $this->host ? '127.0.0.1' : $this->host,
53+
'0.0.0.0' === $this->host ? 'localhost' : $this->host,
5454
$this->port,
5555
microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'],
5656
date('r'),

0 commit comments

Comments
 (0)