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) {