[allnet] Fix host header

pull/1/head
samnyan 2020-01-27 13:59:43 +08:00
parent ae5c61ac5e
commit 44c41a3778
3 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@
</parent>
<groupId>icu.samnya</groupId>
<artifactId>aqua</artifactId>
<version>0.0.6-RELEASE</version>
<version>0.0.7-RELEASE</version>
<name>Aqua Server</name>
<description>A multipurpose game server</description>

View File

@ -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;
}
}

View File

@ -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(),