ntp和udp URI的GUI现在可以不写协议
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user