From f667f46dce883ed7e2fc87a88c8b7087e956d8c7 Mon Sep 17 00:00:00 2001 From: Garfield Tan Date: Fri, 7 Jul 2017 17:53:24 -0700 Subject: [PATCH] Allow SMBv3. SMBv2 is already enforced in previous commit. This fixed #7. --- .../sambadocumentsprovider/SambaProviderApplication.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/google/android/sambadocumentsprovider/SambaProviderApplication.java b/app/src/main/java/com/google/android/sambadocumentsprovider/SambaProviderApplication.java index 42bae83..9ba43f7 100644 --- a/app/src/main/java/com/google/android/sambadocumentsprovider/SambaProviderApplication.java +++ b/app/src/main/java/com/google/android/sambadocumentsprovider/SambaProviderApplication.java @@ -77,7 +77,10 @@ public class SambaProviderApplication extends Application { // hosts -- hosts file and DNS resolution // bcast -- NetBIOS broadcast mSambaConf.addConfiguration("name resolve order", "wins bcast hosts"); + + // Urge from users to disable SMB1 by default. mSambaConf.addConfiguration("client min protocol", "SMB2"); + mSambaConf.addConfiguration("client max protocol", "SMB3"); mSambaConf.flushAsDefault(new OnConfigurationChangedListener() { @Override public void onConfigurationChanged() {