Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Grasscutter
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
ziqian zhang
Grasscutter
Commits
e29c2dc1
Commit
e29c2dc1
authored
3 years ago
by
Magix
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge branch 'stable' into development
parents
1ed0511c
6b81b888
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
proxy_config.py
+15
-2
15 additions, 2 deletions
proxy_config.py
src/main/java/emu/grasscutter/Grasscutter.java
+3
-3
3 additions, 3 deletions
src/main/java/emu/grasscutter/Grasscutter.java
with
18 additions
and
5 deletions
proxy_config.py
+
15
−
2
View file @
e29c2dc1
import
os
# This can also be replaced with another IP address.
# This can also be replaced with another IP address.
USE_SSL
=
True
USE_SSL
=
True
REMOTE_HOST
=
"
127.0.0.1
"
REMOTE_HOST
=
"
localhost
"
REMOTE_PORT
=
443
REMOTE_PORT
=
443
\ No newline at end of file
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
))
This diff is collapsed.
Click to expand it.
src/main/java/emu/grasscutter/Grasscutter.java
+
3
−
3
View file @
e29c2dc1
...
@@ -51,7 +51,7 @@ public final class Grasscutter {
...
@@ -51,7 +51,7 @@ public final class Grasscutter {
private
static
PluginManager
pluginManager
;
private
static
PluginManager
pluginManager
;
public
static
final
Reflections
reflector
=
new
Reflections
(
"emu.grasscutter"
);
public
static
final
Reflections
reflector
=
new
Reflections
(
"emu.grasscutter"
);
static
{
static
{
// Declare logback configuration.
// Declare logback configuration.
System
.
setProperty
(
"logback.configurationFile"
,
"src/main/resources/logback.xml"
);
System
.
setProperty
(
"logback.configurationFile"
,
"src/main/resources/logback.xml"
);
...
@@ -66,7 +66,7 @@ public final class Grasscutter {
...
@@ -66,7 +66,7 @@ public final class Grasscutter {
Utils
.
startupCheck
();
Utils
.
startupCheck
();
}
}
public
static
void
main
(
String
[]
args
)
throws
Exception
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
Crypto
.
loadKeys
();
// Load keys from buffers.
Crypto
.
loadKeys
();
// Load keys from buffers.
// Parse arguments.
// Parse arguments.
...
@@ -127,7 +127,7 @@ public final class Grasscutter {
...
@@ -127,7 +127,7 @@ public final class Grasscutter {
// Open console.
// Open console.
startConsole
();
startConsole
();
}
}
/**
/**
* Server shutdown event.
* Server shutdown event.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment