解决客户端native编译时启动udp端口的问题
This commit is contained in:
+1
-1
@@ -57,5 +57,5 @@ hs_err_pid*
|
||||
neutrino-proxy-vuepress/deploy.sh
|
||||
.NEUTRINO_PROXY_CLIENT_ID
|
||||
logs
|
||||
**/ixxxk.com/**
|
||||
**/cert/**
|
||||
neutrino-proxy-server/src/main/resources/static/**
|
||||
|
||||
+26
-26
@@ -2,8 +2,8 @@
|
||||
- [x] 服务端编译、启动成功
|
||||
- [x] 客户端编译、启动成功
|
||||
- [ ] 配置
|
||||
- [ ] 启动参数
|
||||
- [ ] 外部配置文件
|
||||
- [x] 启动参数
|
||||
- [x] 外部配置文件
|
||||
- [ ] 环境变量
|
||||
- [ ] 日志
|
||||
- [x] 控制台输出
|
||||
@@ -20,34 +20,34 @@
|
||||
|
||||
# 服务端管理后台
|
||||
- [x] 登录成功
|
||||
- [ ] 首页统计
|
||||
- [ ] 代理配置
|
||||
- [ ] license管理
|
||||
- [ ] 端口映射
|
||||
- [ ] 系统管理
|
||||
- [ ] 用户管理
|
||||
- [ ] 端口分组管理
|
||||
- [ ] 端口池管理
|
||||
- [ ] 协议管理
|
||||
- [ ] 调度管理
|
||||
- [ ] 报表管理
|
||||
- [ ] 用户流量报表
|
||||
- [ ] License流量报表
|
||||
- [ ] 用户流量月度明细
|
||||
- [ ] License流量月度明细
|
||||
- [ ] 日志管理
|
||||
- [ ] 调度日志
|
||||
- [ ] 登录日志
|
||||
- [ ] 客户端连接日志
|
||||
- [x] 首页统计
|
||||
- [x] 代理配置
|
||||
- [x] license管理
|
||||
- [x] 端口映射
|
||||
- [x] 系统管理
|
||||
- [x] 用户管理
|
||||
- [x] 端口分组管理
|
||||
- [x] 端口池管理
|
||||
- [x] 协议管理
|
||||
- [x] 调度管理
|
||||
- [x] 报表管理
|
||||
- [x] 用户流量报表
|
||||
- [x] License流量报表
|
||||
- [x] 用户流量月度明细
|
||||
- [x] License流量月度明细
|
||||
- [x] 日志管理
|
||||
- [x] 调度日志
|
||||
- [x] 登录日志
|
||||
- [x] 客户端连接日志
|
||||
|
||||
|
||||
# 客户端
|
||||
- [ ] 重连机制
|
||||
- [x] 重连机制
|
||||
|
||||
# 代理
|
||||
- [x] TCP代理
|
||||
- [ ] HTTP(S)代理
|
||||
- [ ] 端口访问
|
||||
- [ ] HTTP域名访问
|
||||
- [ ] HTTPS域名访问
|
||||
- [x] HTTP(S)代理
|
||||
- [x] 端口访问
|
||||
- [x] HTTP域名访问
|
||||
- [x] HTTPS域名访问
|
||||
- [ ] UDP代理
|
||||
|
||||
+5
@@ -11,6 +11,7 @@ import org.dromara.neutrinoproxy.client.config.ProxyConfig;
|
||||
import org.dromara.neutrinoproxy.client.constant.Constants;
|
||||
import org.dromara.neutrinoproxy.client.core.CustomThreadFactory;
|
||||
import org.dromara.neutrinoproxy.core.ProxyMessage;
|
||||
import org.noear.solon.core.runtime.NativeDetector;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.concurrent.*;
|
||||
@@ -46,6 +47,10 @@ public class UdpServerUtil {
|
||||
* @param proxyConfig
|
||||
*/
|
||||
public static void initCache(ProxyConfig proxyConfig, Bootstrap udpServerBootstrap) {
|
||||
// aot 阶段,不初始化UDP服务
|
||||
if (NativeDetector.isNotAotRuntime()) {
|
||||
return;
|
||||
}
|
||||
if (null == proxyConfig.getClient().getUdp() || StringUtils.isEmpty(proxyConfig.getClient().getUdp().getPuppetPortRange())) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user