mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-07 02:37:26 +08:00
[allnet] Fix host header
This commit is contained in:
@@ -80,9 +80,9 @@ public class AllNetController {
|
||||
private String switchHost(String gameId) {
|
||||
switch (gameId) {
|
||||
case "SDDF":
|
||||
return "http://" + HOST + ":" + PORT + "/";
|
||||
return HOST + ":" + PORT + "/";
|
||||
default:
|
||||
return "http://" + HOST + ":" + PORT + "/";
|
||||
return HOST;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -27,8 +27,8 @@ public class PingHandler extends BaseHandler {
|
||||
|
||||
public String handle(BaseRequest request) {
|
||||
|
||||
PropertyEntry news = propertyEntryRepository.findByPropertyKey("diva_news").orElseGet(() -> new PropertyEntry("diva_news", "Server Running No other news"));
|
||||
PropertyEntry warning = propertyEntryRepository.findByPropertyKey("diva_warning").orElseGet(() -> new PropertyEntry("diva_warning", "Network Service Running"));
|
||||
PropertyEntry news = propertyEntryRepository.findByPropertyKey("diva_news").orElseGet(() -> new PropertyEntry("diva_news", "xxx"));
|
||||
PropertyEntry warning = propertyEntryRepository.findByPropertyKey("diva_warning").orElseGet(() -> new PropertyEntry("diva_warning", "xxx"));
|
||||
|
||||
PingResponse response = new PingResponse(
|
||||
request.getCmd(),
|
||||
|
||||
Reference in New Issue
Block a user