From 454b3c9bee47eff552a55dd722d0c7af228bfa3f Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Fri, 12 Jul 2019 14:32:37 -0400 Subject: [PATCH] Add flag to disable native transports --- .../java/com/velocitypowered/proxy/network/TransportType.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/network/TransportType.java b/proxy/src/main/java/com/velocitypowered/proxy/network/TransportType.java index a1b799494..b5829f375 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/network/TransportType.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/network/TransportType.java @@ -56,6 +56,10 @@ enum TransportType { } public static TransportType bestType() { + if (Boolean.getBoolean("velocity.disable-native-transport")) { + return NIO; + } + if (Epoll.isAvailable()) { return EPOLL; } else {