From 749490830f74def5dddd32244fa19b39b4e61de1 Mon Sep 17 00:00:00 2001 From: Jernej Jakob Date: Mon, 31 Mar 2025 14:54:46 +0200 Subject: [PATCH] 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. --- syncoid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncoid b/syncoid index 79ad45f..91bc277 100755 --- a/syncoid +++ b/syncoid @@ -178,7 +178,7 @@ if (length $args{'insecure-direct-connection'}) { $directlisten = $args{'insecure-direct-connection'}; } - if (scalar @parts == 3) { + if (scalar @parts >= 3) { $directtimeout = $parts[2]; }