Skip to content

Commit

Permalink
Enable SMB3 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
hierynomus committed Apr 20, 2021
1 parent 04549c9 commit a7e9e07
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/hierynomus/smbj/SmbConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
import java.util.*;
import java.util.concurrent.TimeUnit;

import static com.hierynomus.mssmb2.SMB2Dialect.*;

public final class SmbConfig {
private static final int DEFAULT_BUFFER_SIZE = 1024 * 1024;

Expand Down Expand Up @@ -96,7 +98,7 @@ public static Builder builder() {
.withBufferSize(DEFAULT_BUFFER_SIZE)
.withTransportLayerFactory(DEFAULT_TRANSPORT_LAYER_FACTORY)
.withSoTimeout(DEFAULT_SO_TIMEOUT, DEFAULT_SO_TIMEOUT_UNIT)
.withDialects(SMB2Dialect.SMB_2_1, SMB2Dialect.SMB_2_0_2)
.withDialects(SMB_3_1_1, SMB_3_0_2, SMB_3_0, SMB_2_1, SMB_2_0_2)
// order is important. The authenticators listed first will be selected
.withAuthenticators(getDefaultAuthenticators())
.withTimeout(DEFAULT_TIMEOUT, DEFAULT_TIMEOUT_UNIT)
Expand Down

0 comments on commit a7e9e07

Please sign in to comment.