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.
1 parent 0df2959 commit c60ee85Copy full SHA for c60ee85
src/FrankenPhp/ServerProcessInspector.php
@@ -64,9 +64,12 @@ public function stopServer(): bool
64
*/
65
protected function adminUrl(): string
66
{
67
- $adminPort = $this->serverStateFile->read()['state']['adminPort'] ?? 2019;
+ $serverStateFile = $this->serverStateFile->read();
68
+
69
+ $adminHost = $serverStateFile['state']['adminHost'] ?? 'localhost';
70
+ $adminPort = $serverStateFile['state']['adminPort'] ?? 2019;
71
- return "http://localhost:{$adminPort}";
72
+ return "http://{$adminHost}:{$adminPort}";
73
}
74
75
/**
0 commit comments