From c1dc69845e50d6fffa789226ece5ae62a42ff70e Mon Sep 17 00:00:00 2001 From: games647 Date: Wed, 13 May 2020 21:27:53 +0200 Subject: [PATCH] [Experimental] Enable paranoid to hide MySQL details --- .../java/com/github/games647/fastlogin/core/AuthStorage.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/com/github/games647/fastlogin/core/AuthStorage.java b/core/src/main/java/com/github/games647/fastlogin/core/AuthStorage.java index 24415905..e9d0808c 100644 --- a/core/src/main/java/com/github/games647/fastlogin/core/AuthStorage.java +++ b/core/src/main/java/com/github/games647/fastlogin/core/AuthStorage.java @@ -68,6 +68,10 @@ public class AuthStorage { // prefer encrypted if possible config.addDataSourceProperty("sslMode", "PREFERRED"); + // adding paranoid hides hostname, username, version and so + // could be useful for hiding server details + config.addDataSourceProperty("paranoid", "true"); + // enable MySQL specific optimizations // disabled by default - will return the same prepared statement instance config.addDataSourceProperty("cachePrepStmts", true);