fix(portforwarding): no ControlMaster for portforwarding sessions

pull/597/head
jon4hz 5 months ago
parent 471b55f463
commit f438a0aeaa
No known key found for this signature in database
GPG Key ID: 4B0AFE9E7118898E

@ -1788,6 +1788,11 @@ else {
$pf->{'localHost'} . ':' . $pf->{'localPort'} . ':' . $pf->{'remoteHost'} . ':' . $pf->{'remotePort'};
}
# make sure we dont use ControlMasters for portforwarding sessions
if (@validPortForwards) {
push @command, '-o', 'ControlMaster=no', '-o', 'ControlPath=none';
}
if (not $quiet) {
$fnret =
OVH::Bastion::account_config(account => $self, key => OVH::Bastion::OPT_ACCOUNT_IDLE_IGNORE, public => 1);

Loading…
Cancel
Save