Skip to content

Commit

Permalink
FIX 内置服务器启动默认host显示问题
Browse files Browse the repository at this point in the history
  • Loading branch information
tim1116 authored and liu21st committed Jul 4, 2021
1 parent d4eca65 commit 89e9201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/think/console/command/RunServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function execute(Input $input, Output $output)
escapeshellarg($root . DIRECTORY_SEPARATOR . 'router.php')
);

$output->writeln(sprintf('ThinkPHP Development server is started On <http://%s:%s/>', '0.0.0.0' == $host ? '127.0.0.1' : $host, $port));
$output->writeln(sprintf('ThinkPHP Development server is started On <http://%s:%s/>', $host, $port));
$output->writeln(sprintf('You can exit with <info>`CTRL-C`</info>'));
$output->writeln(sprintf('Document root is: %s', $root));
passthru($command);
Expand Down

0 comments on commit 89e9201

Please sign in to comment.