Set minimum protocol to SMB2 (#10)

This sets the default configuration to use at least SMB2, instead of defaulting to SMB1. You may want to look into the sub versions of SMB2 to see if this default is correct.
This commit is contained in:
Adam Baxter 2017-07-07 13:58:54 +10:00 committed by Xu Tan
parent b9d90368bc
commit 01bde4ab53

View file

@ -77,6 +77,7 @@ public class SambaProviderApplication extends Application {
// hosts -- hosts file and DNS resolution // hosts -- hosts file and DNS resolution
// bcast -- NetBIOS broadcast // bcast -- NetBIOS broadcast
mSambaConf.addConfiguration("name resolve order", "wins bcast hosts"); mSambaConf.addConfiguration("name resolve order", "wins bcast hosts");
mSambaConf.addConfiguration("client min protocol", "SMB2");
mSambaConf.flushAsDefault(new OnConfigurationChangedListener() { mSambaConf.flushAsDefault(new OnConfigurationChangedListener() {
@Override @Override
public void onConfigurationChanged() { public void onConfigurationChanged() {