mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-09 14:58:57 +02:00
[BUGFIX] [Issue#405] Malformed ssh command when defining host:port notation
This commit is contained in:
@@ -492,6 +492,10 @@ class Runtime
|
||||
*/
|
||||
public function getHostName()
|
||||
{
|
||||
if (strpos($this->getWorkingHost(), ':') === false) {
|
||||
return $this->getWorkingHost();
|
||||
}
|
||||
|
||||
$info = explode(':', $this->getWorkingHost());
|
||||
return $info[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user