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
12674f6c
Commit
12674f6c
authored
Apr 21, 2022
by
Jaida Wu
Browse files
Fallback to HTTP if no SSL cert
Signed-off-by:
Jaida Wu
<
mlgmxyysd@meowcat.org
>
parent
23226ad4
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/dispatch/DispatchServer.java
View file @
12674f6c
...
...
@@ -142,8 +142,9 @@ public final class DispatchServer {
httpsServer
.
setHttpsConfigurator
(
new
HttpsConfigurator
(
sslContext
));
server
=
httpsServer
;
}
catch
(
Exception
e
)
{
Grasscutter
.
getLogger
().
error
(
"No SSL cert found!"
);
return
;
Grasscutter
.
getLogger
().
error
(
"No SSL cert found! Falling back to HTTP server."
);
Grasscutter
.
getConfig
().
UseSSL
=
false
;
server
=
HttpServer
.
create
(
getAddress
(),
0
);
}
}
else
{
server
=
HttpServer
.
create
(
getAddress
(),
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