From 66c8abd03b03ecb8ad87939655f3c930b31210fc Mon Sep 17 00:00:00 2001 From: Alessandro La Tona Date: Tue, 31 Oct 2023 19:32:18 +0100 Subject: [PATCH] Add parameter to use SMB1 --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 8c4ccf5..d1a2964 100644 --- a/index.js +++ b/index.js @@ -152,7 +152,11 @@ class SambaClient { } if (this.maxProtocol) { - args.push("--max-protocol", this.maxProtocol); + if (this.maxProtocol === 'SMB1') { + args.push("--option", "client min protocol=NT1"); + } else { + args.push("--max-protocol", this.maxProtocol); + } } if (this.port) {