mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-05 08:58:56 +02:00
Add config option to set ConnectTimeout for ssh connections
This commit is contained in:
@@ -391,6 +391,16 @@ class Config
|
||||
return $this->deployment('identity-file') ? ('-i ' . $this->deployment('identity-file') . ' ') : '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the ConnectTimeout option
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getConnectTimeoutOption()
|
||||
{
|
||||
return $this->environmentConfig('connect-timeout') ? ('-o ConnectTimeout=' . $this->environmentConfig('connect-timeout') . ' ') : '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current Host
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user