diff --git a/SMBLibrary/Client/SMB1Client.cs b/SMBLibrary/Client/SMB1Client.cs index b2775917..a8cc3500 100644 --- a/SMBLibrary/Client/SMB1Client.cs +++ b/SMBLibrary/Client/SMB1Client.cs @@ -78,9 +78,14 @@ public bool Connect(IPAddress serverAddress, SMBTransportType transport) } public bool Connect(IPAddress serverAddress, SMBTransportType transport, bool forceExtendedSecurity) + { + return Connect(serverAddress, transport, forceExtendedSecurity, DefaultResponseTimeoutInMilliseconds); + } + + public bool Connect(IPAddress serverAddress, SMBTransportType transport, bool forceExtendedSecurity, int responseTimeoutInMilliseconds) { int port = (transport == SMBTransportType.DirectTCPTransport ? DirectTCPPort : NetBiosOverTCPPort); - return Connect(serverAddress, transport, port, forceExtendedSecurity, DefaultResponseTimeoutInMilliseconds); + return Connect(serverAddress, transport, port, forceExtendedSecurity, responseTimeoutInMilliseconds); } internal bool Connect(IPAddress serverAddress, SMBTransportType transport, int port, bool forceExtendedSecurity, int responseTimeoutInMilliseconds)