mirror of
https://github.com/GeyserMC/GeyserConnect.git
synced 2025-06-26 14:15:22 +02:00
Fix vhost parsing (closes #37)
This commit is contained in:
parent
eeadde0550
commit
ade33d54ec
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ public class PacketHandler implements BedrockPacketHandler {
|
||||||
boolean online = true;
|
boolean online = true;
|
||||||
|
|
||||||
// Parse the address used
|
// Parse the address used
|
||||||
String[] domainParts = domain.replaceFirst("\\." + vhost.getBaseDomain() + "$", "").split("._");
|
String[] domainParts = domain.replaceFirst("\\." + vhost.getBaseDomain() + "$", "").split("\\._");
|
||||||
for (int i = 0; i < domainParts.length; i++) {
|
for (int i = 0; i < domainParts.length; i++) {
|
||||||
String part = domainParts[i];
|
String part = domainParts[i];
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue