We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8ad9e84 + 4709c33 commit aa1d71dCopy full SHA for aa1d71d
src/PhpConsole/Connector.php
@@ -488,7 +488,7 @@ private function proceedResponsePackage() {
488
$response->auth = $this->auth->getServerAuthStatus($this->client->auth);
489
}
490
if(!$this->auth || $this->isAuthorized()) {
491
- $response->isLocal = isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] == '127.0.0.1';
+ $response->isLocal = isset($_SERVER['REMOTE_ADDR']) && ($_SERVER['REMOTE_ADDR'] == '127.0.0.1' || $_SERVER['REMOTE_ADDR'] == '::1');
492
$response->docRoot = isset($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : null;
493
$response->sourcesBasePath = $this->sourcesBasePath;
494
$response->isEvalEnabled = $this->isEvalListenerStarted;
0 commit comments