mirror of https://github.com/hykilpikonna/AquaDX
[allnet] Fix host header
parent
ae5c61ac5e
commit
44c41a3778
2
pom.xml
2
pom.xml
|
@ -10,7 +10,7 @@
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>icu.samnya</groupId>
|
<groupId>icu.samnya</groupId>
|
||||||
<artifactId>aqua</artifactId>
|
<artifactId>aqua</artifactId>
|
||||||
<version>0.0.6-RELEASE</version>
|
<version>0.0.7-RELEASE</version>
|
||||||
<name>Aqua Server</name>
|
<name>Aqua Server</name>
|
||||||
<description>A multipurpose game server</description>
|
<description>A multipurpose game server</description>
|
||||||
|
|
||||||
|
|
|
@ -80,9 +80,9 @@ public class AllNetController {
|
||||||
private String switchHost(String gameId) {
|
private String switchHost(String gameId) {
|
||||||
switch (gameId) {
|
switch (gameId) {
|
||||||
case "SDDF":
|
case "SDDF":
|
||||||
return "http://" + HOST + ":" + PORT + "/";
|
return HOST + ":" + PORT + "/";
|
||||||
default:
|
default:
|
||||||
return "http://" + HOST + ":" + PORT + "/";
|
return HOST;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,8 +27,8 @@ public class PingHandler extends BaseHandler {
|
||||||
|
|
||||||
public String handle(BaseRequest request) {
|
public String handle(BaseRequest request) {
|
||||||
|
|
||||||
PropertyEntry news = propertyEntryRepository.findByPropertyKey("diva_news").orElseGet(() -> new PropertyEntry("diva_news", "Server Running No other news"));
|
PropertyEntry news = propertyEntryRepository.findByPropertyKey("diva_news").orElseGet(() -> new PropertyEntry("diva_news", "xxx"));
|
||||||
PropertyEntry warning = propertyEntryRepository.findByPropertyKey("diva_warning").orElseGet(() -> new PropertyEntry("diva_warning", "Network Service Running"));
|
PropertyEntry warning = propertyEntryRepository.findByPropertyKey("diva_warning").orElseGet(() -> new PropertyEntry("diva_warning", "xxx"));
|
||||||
|
|
||||||
PingResponse response = new PingResponse(
|
PingResponse response = new PingResponse(
|
||||||
request.getCmd(),
|
request.getCmd(),
|
||||||
|
|
Loading…
Reference in New Issue