Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for enableSMB2 (0.24 sec)

  1. src/test/java/jcifs/tests/ContextConfigTest.java

        }
    
    
        @Test
        // #226
        public void testLegacyConfig () throws CIFSException {
            Properties prop1 = new Properties();
            prop1.setProperty("jcifs.smb.client.enableSMB2", "false");
            prop1.setProperty("jcifs.smb.client.disableSMB1", "false");
            PropertyConfiguration p1 = new PropertyConfiguration(prop1);
    
            assertEquals(DialectVersion.SMB1, p1.getMinimumVersion());
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/config/PropertyConfiguration.java

            if ( minVer != null || maxVer != null ) {
                initProtocolVersions(minVer, maxVer);
            }
            else {
                boolean smb2 = Config.getBoolean(p, "jcifs.smb.client.enableSMB2", true);
                boolean nosmb1 = Config.getBoolean(p, "jcifs.smb.client.disableSMB1", false);
                initProtocolVersions(nosmb1 ? DialectVersion.SMB202 : null, !smb2 ? DialectVersion.SMB1 : null);
            }
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Thu Jan 05 13:06:39 GMT 2023
    - 8.9K bytes
    - Viewed (0)
Back to top