Skip to content

Commit c36e8c8

Browse files
committed
Added h2 & spring bind addresses
1 parent aae8736 commit c36e8c8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/main/java/net/javadiscord/javabot/data/h2db/DbHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public class DbHelper {
5757
// Now that we have remembered whether we need to initialize the schema, start up the server.
5858
Server server;
5959
try {
60+
System.setProperty("h2.bindAddress", "127.0.0.1");
6061
server = Server.createTcpServer("-tcpPort", "9122", "-ifNotExists").start();
6162
} catch (SQLException e) {
6263
ExceptionLogger.capture(e, DbHelper.class.getSimpleName());
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
server.address=127.0.0.1
12
server.port=9000
23
tomcat.ajp.port=9001
34
tomcat.ajp.enabled=true

0 commit comments

Comments
 (0)