Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-24 15:20:35 +01:00
Add flag to disable native transports
Dieser Commit ist enthalten in:
Ursprung
145dfa8ac6
Commit
58b52cce0c
@ -67,6 +67,10 @@ enum TransportType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static TransportType bestType() {
|
public static TransportType bestType() {
|
||||||
|
if (Boolean.getBoolean("velocity.disable-native-transport")) {
|
||||||
|
return NIO;
|
||||||
|
}
|
||||||
|
|
||||||
if (Epoll.isAvailable()) {
|
if (Epoll.isAvailable()) {
|
||||||
return EPOLL;
|
return EPOLL;
|
||||||
} else if (KQueue.isAvailable()) {
|
} else if (KQueue.isAvailable()) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren