mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-08 08:42:14 +02:00
[BUGFIX] [Issue#405] Malformed ssh command when defining host:port notation
This commit is contained in:
parent
4232059d7e
commit
50ddf081fb
|
@ -3,7 +3,7 @@ CHANGELOG for 3.X
|
||||||
|
|
||||||
* 3.4.0 (2018-03-29)
|
* 3.4.0 (2018-03-29)
|
||||||
* [Issue#380] Throw exception if log_dir is defined but directory doesn't exists
|
* [Issue#380] Throw exception if log_dir is defined but directory doesn't exists
|
||||||
* [Issue#405] Malformed ssh command when defining host:port notation
|
* [BUGFIX] [Issue#405] Malformed ssh command when defining host:port notation
|
||||||
|
|
||||||
|
|
||||||
* 3.3.0 (2017-07-22)
|
* 3.3.0 (2017-07-22)
|
||||||
|
|
|
@ -492,6 +492,10 @@ class Runtime
|
||||||
*/
|
*/
|
||||||
public function getHostName()
|
public function getHostName()
|
||||||
{
|
{
|
||||||
|
if (strpos($this->getWorkingHost(), ':') === false) {
|
||||||
|
return $this->getWorkingHost();
|
||||||
|
}
|
||||||
|
|
||||||
$info = explode(':', $this->getWorkingHost());
|
$info = explode(':', $this->getWorkingHost());
|
||||||
return $info[0];
|
return $info[0];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue