Skip to content

Commit

Permalink
Merge branch 'stable' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
KingRainbow44 committed May 7, 2022
2 parents c8779fe + 3f46100 commit 5744fc6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
17 changes: 15 additions & 2 deletions proxy_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
import os

# This can also be replaced with another IP address.
USE_SSL = True
REMOTE_HOST = "127.0.0.1"
REMOTE_PORT = 443
REMOTE_HOST = "localhost"
REMOTE_PORT = 443

if os.getenv('MITM_REMOTE_HOST') != None:
REMOTE_HOST = os.getenv('MITM_REMOTE_HOST')
if os.getenv('MITM_REMOTE_PORT') != None:
REMOTE_PORT = int(os.getenv('MITM_REMOTE_PORT'))
if os.getenv('MITM_USE_SSL') != None:
USE_SSL = bool(os.getenv('MITM_USE_SSL'))

print('MITM Remote Host: ' + REMOTE_HOST)
print('MITM Remote Port: ' + str(REMOTE_PORT))
print('MITM Use SSL ' + str(USE_SSL))
6 changes: 3 additions & 3 deletions src/main/java/emu/grasscutter/Grasscutter.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public final class Grasscutter {
private static PluginManager pluginManager;

public static final Reflections reflector = new Reflections("emu.grasscutter");

static {
// Declare logback configuration.
System.setProperty("logback.configurationFile", "src/main/resources/logback.xml");
Expand All @@ -66,7 +66,7 @@ public final class Grasscutter {
Utils.startupCheck();
}

public static void main(String[] args) throws Exception {
public static void main(String[] args) throws Exception {
Crypto.loadKeys(); // Load keys from buffers.

// Parse arguments.
Expand Down Expand Up @@ -127,7 +127,7 @@ public static void main(String[] args) throws Exception {

// Open console.
startConsole();
}
}

/**
* Server shutdown event.
Expand Down

0 comments on commit 5744fc6

Please sign in to comment.