forked from KNEMC/KLALB
ntp和udp URI的GUI现在可以不写协议
This commit is contained in:
+16
-16
@@ -20,22 +20,22 @@
|
|||||||
"tcp://kne02.yoyo250.fun:4565"
|
"tcp://kne02.yoyo250.fun:4565"
|
||||||
],
|
],
|
||||||
"ntpServerTable": [
|
"ntpServerTable": [
|
||||||
"ntp://ntp1.aliyun.com:123",
|
"ntp://ntp1.aliyun.com",
|
||||||
"ntp://ntp2.aliyun.com:123",
|
"ntp://ntp2.aliyun.com",
|
||||||
"ntp://ntp3.aliyun.com:123",
|
"ntp://ntp3.aliyun.com",
|
||||||
"ntp://ntp4.aliyun.com:123",
|
"ntp://ntp4.aliyun.com",
|
||||||
"ntp://ntp5.aliyun.com:123",
|
"ntp://ntp5.aliyun.com",
|
||||||
"ntp://ntp6.aliyun.com:123",
|
"ntp://ntp6.aliyun.com",
|
||||||
"ntp://ntp7.aliyun.com:123",
|
"ntp://ntp7.aliyun.com",
|
||||||
"ntp://ntp1.tencent.com:123",
|
"ntp://ntp1.tencent.com",
|
||||||
"ntp://ntp2.tencent.com:123",
|
"ntp://ntp2.tencent.com",
|
||||||
"ntp://ntp4.tencent.com:123",
|
"ntp://ntp4.tencent.com",
|
||||||
"ntp://ntp5.tencent.com:123",
|
"ntp://ntp5.tencent.com",
|
||||||
"ntp://time.google.com:123",
|
"ntp://time.google.com",
|
||||||
"ntp://time.apple.com:123",
|
"ntp://time.apple.com",
|
||||||
"ntp://pool.ntp.org:123",
|
"ntp://pool.ntp.org",
|
||||||
"ntp://ntp.ntsc.ac.cn:123",
|
"ntp://ntp.ntsc.ac.cn",
|
||||||
"ntp://us.ntp.org.cn:123"
|
"ntp://us.ntp.org.cn"
|
||||||
],
|
],
|
||||||
"denyLineTableQuery": false,
|
"denyLineTableQuery": false,
|
||||||
"denyLineTableBroadcast": false,
|
"denyLineTableBroadcast": false,
|
||||||
|
|||||||
@@ -1101,7 +1101,7 @@ public class KLALBStateGUI3 extends XFrame {
|
|||||||
kck.setUDPListen(null);
|
kck.setUDPListen(null);
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
kck.setUDPListen(new MultiProtocolSocketAddress(udptext));
|
kck.setUDPListen(new MultiProtocolSocketAddress(udptext,"udp"));
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
JOptionPane.showMessageDialog(this, UIEnv.getRsb().getString("invaildudplisten"),
|
JOptionPane.showMessageDialog(this, UIEnv.getRsb().getString("invaildudplisten"),
|
||||||
@@ -1160,7 +1160,7 @@ public class KLALBStateGUI3 extends XFrame {
|
|||||||
try {
|
try {
|
||||||
str = str.trim();
|
str = str.trim();
|
||||||
if (!str.isEmpty())
|
if (!str.isEmpty())
|
||||||
iaddr111.add(new MultiProtocolSocketAddress(str));
|
iaddr111.add(new MultiProtocolSocketAddress(str,"ntp"));
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
if (show111) {
|
if (show111) {
|
||||||
|
|||||||
Reference in New Issue
Block a user