syncoid: fix directtimeout in directmbuffer mode

If --insecure-direct-connection contained 4 parts (including the
',mbuffer' at the end), the 3rd part (timeout) was silently ignored
and left at the default 60s.

Do not ignore the timeout part even in directmbuffer mode.
This commit is contained in:
Jernej Jakob 2025-03-31 14:54:46 +02:00
parent 6beef5fee6
commit 749490830f
No known key found for this signature in database
GPG Key ID: 1E936484FFE8BA69
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ if (length $args{'insecure-direct-connection'}) {
$directlisten = $args{'insecure-direct-connection'}; $directlisten = $args{'insecure-direct-connection'};
} }
if (scalar @parts == 3) { if (scalar @parts >= 3) {
$directtimeout = $parts[2]; $directtimeout = $parts[2];
} }