Commit 5070eb71 authored by Luna Riegel's avatar Luna Riegel
Browse files

Fix: Remove debug H2 auto-server parameter

Removes the AUTO_SERVER=TRUE flag for H2, which was used for debugging
and causes a Firewall popup in the compiled binaries due to opening a
port for local access to the embedded database. Denying the Firewall
request has no impact on CityDoctor, as its connection uses the
embedded mode of H2. Accepting the request does not allow remote access
to the database, as by default H2 rejects any connection from remote
machines.
parent 61859d4f
...@@ -40,7 +40,7 @@ public class EmbeddedDatabaseHandler { ...@@ -40,7 +40,7 @@ public class EmbeddedDatabaseHandler {
public EmbeddedDatabaseHandler(){ public EmbeddedDatabaseHandler(){
try { try {
String jdbcurl = H2GISDBFactory.createDataSource(DB_NAME, String jdbcurl = H2GISDBFactory.createDataSource(DB_NAME,
true, ";AUTO_SERVER=TRUE").getConnection().getMetaData().getURL(); true, ";").getConnection().getMetaData().getURL();
logger.debug("1] {}",jdbcurl); logger.debug("1] {}",jdbcurl);
HikariDataSource ds = new HikariDataSource(); HikariDataSource ds = new HikariDataSource();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment