Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
29f6d77e
Commit
29f6d77e
authored
Apr 21, 2022
by
Melledy
Browse files
Add config entry for OverseaLogPort (default: 8888)
parent
85453c48
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/Config.java
View file @
29f6d77e
...
...
@@ -13,6 +13,7 @@ public final class Config {
public
String
GameServerPublicIp
=
""
;
public
int
GameServerPort
=
22102
;
public
int
OverseaLogPort
=
8888
;
public
int
UploadLogPort
=
80
;
public
String
DatabaseUrl
=
"mongodb://localhost:27017"
;
...
...
src/main/java/emu/grasscutter/server/dispatch/DispatchServer.java
View file @
29f6d77e
...
...
@@ -410,7 +410,7 @@ public final class DispatchServer {
Grasscutter
.
getLogger
().
info
(
"Dispatch server started on port "
+
getAddress
().
getPort
());
// Logging servers
HttpServer
overseaLogServer
=
HttpServer
.
create
(
new
InetSocketAddress
(
Grasscutter
.
getConfig
().
DispatchServerIp
,
8888
),
0
);
HttpServer
overseaLogServer
=
HttpServer
.
create
(
new
InetSocketAddress
(
Grasscutter
.
getConfig
().
DispatchServerIp
,
Grasscutter
.
getConfig
().
OverseaLogPort
),
0
);
overseaLogServer
.
createContext
(
// overseauspider.yuanshen.com
"/log"
,
new
DispatchHttpJsonHandler
(
"{\"code\":0}"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment