解决客户端native编译时启动udp端口的问题.

This commit is contained in:
aoshiguchen
2023-10-23 21:26:22 +08:00
parent d3eb245db1
commit f07912a189
@@ -48,7 +48,7 @@ public class UdpServerUtil {
*/
public static void initCache(ProxyConfig proxyConfig, Bootstrap udpServerBootstrap) {
// aot 阶段,不初始化UDP服务
if (NativeDetector.isNotAotRuntime()) {
if (NativeDetector.isAotRuntime()) {
return;
}
if (null == proxyConfig.getClient().getUdp() || StringUtils.isEmpty(proxyConfig.getClient().getUdp().getPuppetPortRange())) {