Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions legacy/src/Command/Auth/BrowserLoginCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}
throw $e;
}
$localAddress = '127.0.0.1:' . $port;
$localUrl = 'http://' . $localAddress;
// Bind to 0.0.0.0 to allow access from outside the container/localhost
$localAddress = '0.0.0.0:' . $port;
// Use 127.0.0.1 for the URL shown to users
Comment on lines +127 to +129
$localUrl = 'http://127.0.0.1:' . $port;
Comment on lines +127 to +130

// Then create the document root for the local server. This needs to be
// outside the CLI itself (since the CLI may be run as a Phar).
Expand Down
Loading