Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Relax (i.e. remove all checks) on the hostname.
While validating this is a good idea, it causes too many issues in practice. We will still clean the server address but no validation is performed on the address.
Dieser Commit ist enthalten in:
Ursprung
c8e3e7ff94
Commit
5ccf22c5c4
@ -42,6 +42,6 @@ public interface ConnectionType {
|
||||
* @return true if valid.
|
||||
*/
|
||||
default boolean checkServerAddressIsValid(String address) {
|
||||
return !address.contains("\0");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -31,10 +31,4 @@ public class LegacyForgeConnectionType extends ConnectionTypeImpl {
|
||||
|
||||
return original;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkServerAddressIsValid(String address) {
|
||||
return super.checkServerAddressIsValid(
|
||||
address.replaceAll(LegacyForgeConstants.HANDSHAKE_HOSTNAME_TOKEN, ""));
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren