Skip to content

Commit 6baf7a4

Browse files
committed
Change known_hosts to .neo4j/known_hosts
1 parent 804a2f1 commit 6baf7a4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

driver/src/main/java/org/neo4j/driver/v1/Config.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public static class ConfigBuilder
142142
private long idleTimeBeforeConnectionTest = 200;
143143
private EncryptionLevel encruptionLevel = EncryptionLevel.REQUIRED;
144144
private TrustStrategy trustStrategy = trustOnFirstUse(
145-
new File( getProperty( "user.home" ), ".neo4j/neo4j_known_hosts" ) );
145+
new File( getProperty( "user.home" ), ".neo4j" + File.separator + "known_hosts" ) );
146146

147147
private ConfigBuilder() {}
148148

driver/src/test/java/org/neo4j/driver/internal/ConfigTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131

3232
public class ConfigTest
3333
{
34-
private static final File DEFAULT_KNOWN_HOSTS = new File( getProperty( "user.home" ), ".neo4j/neo4j_known_hosts" );
34+
private static final File DEFAULT_KNOWN_HOSTS = new File( getProperty( "user.home" ),
35+
".neo4j" + File.separator + "known_hosts" );
3536

3637
@Test
3738
public void shouldDefaultToKnownCerts()

0 commit comments

Comments
 (0)