geforkt von Mirrors/Velocity
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.
|
* @return true if valid.
|
||||||
*/
|
*/
|
||||||
default boolean checkServerAddressIsValid(String address) {
|
default boolean checkServerAddressIsValid(String address) {
|
||||||
return !address.contains("\0");
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,10 +31,4 @@ public class LegacyForgeConnectionType extends ConnectionTypeImpl {
|
|||||||
|
|
||||||
return original;
|
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