ntp和udp URI的GUI现在可以不写协议

This commit is contained in:
2026-07-14 16:38:47 +08:00
parent 314f90b5f3
commit f0efa6d041
2 changed files with 18 additions and 18 deletions
+16 -16
View File
@@ -20,22 +20,22 @@
"tcp://kne02.yoyo250.fun:4565"
],
"ntpServerTable": [
"ntp://ntp1.aliyun.com:123",
"ntp://ntp2.aliyun.com:123",
"ntp://ntp3.aliyun.com:123",
"ntp://ntp4.aliyun.com:123",
"ntp://ntp5.aliyun.com:123",
"ntp://ntp6.aliyun.com:123",
"ntp://ntp7.aliyun.com:123",
"ntp://ntp1.tencent.com:123",
"ntp://ntp2.tencent.com:123",
"ntp://ntp4.tencent.com:123",
"ntp://ntp5.tencent.com:123",
"ntp://time.google.com:123",
"ntp://time.apple.com:123",
"ntp://pool.ntp.org:123",
"ntp://ntp.ntsc.ac.cn:123",
"ntp://us.ntp.org.cn:123"
"ntp://ntp1.aliyun.com",
"ntp://ntp2.aliyun.com",
"ntp://ntp3.aliyun.com",
"ntp://ntp4.aliyun.com",
"ntp://ntp5.aliyun.com",
"ntp://ntp6.aliyun.com",
"ntp://ntp7.aliyun.com",
"ntp://ntp1.tencent.com",
"ntp://ntp2.tencent.com",
"ntp://ntp4.tencent.com",
"ntp://ntp5.tencent.com",
"ntp://time.google.com",
"ntp://time.apple.com",
"ntp://pool.ntp.org",
"ntp://ntp.ntsc.ac.cn",
"ntp://us.ntp.org.cn"
],
"denyLineTableQuery": false,
"denyLineTableBroadcast": false,
@@ -1101,7 +1101,7 @@ public class KLALBStateGUI3 extends XFrame {
kck.setUDPListen(null);
} else {
try {
kck.setUDPListen(new MultiProtocolSocketAddress(udptext));
kck.setUDPListen(new MultiProtocolSocketAddress(udptext,"udp"));
} catch (RuntimeException e) {
e.printStackTrace();
JOptionPane.showMessageDialog(this, UIEnv.getRsb().getString("invaildudplisten"),
@@ -1160,7 +1160,7 @@ public class KLALBStateGUI3 extends XFrame {
try {
str = str.trim();
if (!str.isEmpty())
iaddr111.add(new MultiProtocolSocketAddress(str));
iaddr111.add(new MultiProtocolSocketAddress(str,"ntp"));
} catch (RuntimeException e) {
e.printStackTrace();
if (show111) {