mirror of
https://github.com/bitinflow/expose.git
synced 2026-11-01 13:19:09 +00:00
wip
This commit is contained in:
1 parent
f54c13aec4
commit
87d254db63
3 files changed
+17
-6
No files matched your search
@@ -9,12 +9,12 @@ class ConnectionManager
|
||||
{
|
||||
/** @var array */
|
||||
protected $connections = [];
|
||||
protected $host;
|
||||
protected $hostname;
|
||||
protected $port;
|
||||
|
||||
public function __construct($host, $port)
|
||||
public function __construct($hostname, $port)
|
||||
{
|
||||
$this->host = $host;
|
||||
$this->hostname = $hostname;
|
||||
$this->port = $port;
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ class ConnectionManager
|
||||
|
||||
public function host()
|
||||
{
|
||||
return $this->host === '127.0.0.1' ? 'localhost' : $this->host;
|
||||
return $this->hostname;
|
||||
}
|
||||
|
||||
public function port()
|
||||
|
||||
Reference in new issue
Block a user