Sfoglia il codice sorgente

执行器手动设置IP时取消绑定Host的操作,该IP仅供执行器注册使用;修复指定外网IP时无法绑定执行器Host的问题

xuxueli 6 anni fa
parent
commit
881d65642b

+ 2 - 1
doc/XXL-JOB官方文档.md Vedi File

1240
 - 21、新增左侧菜单"运行报表";
1240
 - 21、新增左侧菜单"运行报表";
1241
 - 22、告警邮件固定使用 UTF-8 编码格式,修复由机器编码导致的邮件乱码问题;
1241
 - 22、告警邮件固定使用 UTF-8 编码格式,修复由机器编码导致的邮件乱码问题;
1242
 - 23、新增任务运行模式 "GLUE模式(PHP) ",支持php脚本任务;
1242
 - 23、新增任务运行模式 "GLUE模式(PHP) ",支持php脚本任务;
1243
-- 24、[迭代中]任务失败重试优化:收敛并废弃现有失败重试策略,新增任务属性 "失败重试次数",支持自定义失败重试次数,任务失败时将会根据该值进行失败重试;
1243
+- 24、执行器手动设置IP时取消绑定Host的操作,该IP仅供执行器注册使用;修复指定外网IP时无法绑定执行器Host的问题;
1244
+- 25、[迭代中]任务失败重试优化:收敛并废弃现有失败重试策略,新增任务属性 "失败重试次数",支持自定义失败重试次数,任务失败时将会根据该值进行失败重试;
1244
 
1245
 
1245
 
1246
 
1246
 ### TODO LIST
1247
 ### TODO LIST

+ 1 - 1
xxl-job-core/src/main/java/com/xxl/job/core/rpc/netcom/jetty/server/JettyServer.java Vedi File

31
 				// HTTP connector
31
 				// HTTP connector
32
 				ServerConnector connector = new ServerConnector(server);
32
 				ServerConnector connector = new ServerConnector(server);
33
 				if (ip!=null && ip.trim().length()>0) {
33
 				if (ip!=null && ip.trim().length()>0) {
34
-					connector.setHost(ip);	// The network interface this connector binds to as an IP address or a hostname.  If null or 0.0.0.0, then bind to all interfaces.
34
+					//connector.setHost(ip);	// The network interface this connector binds to as an IP address or a hostname.  If null or 0.0.0.0, then bind to all interfaces.
35
 				}
35
 				}
36
 				connector.setPort(port);
36
 				connector.setPort(port);
37
 				server.setConnectors(new Connector[]{connector});
37
 				server.setConnectors(new Connector[]{connector});