This commit is contained in:
2026-07-07 01:24:34 +08:00
parent 8dcdb08755
commit 053450429c
2 changed files with 18 additions and 12 deletions
@@ -464,16 +464,18 @@ public class KLALBRemoteLink extends AbstractControlledIPv6NetworkLink implement
break;
case KLALBPacket.VADDR:
IPv6AddressGroup vdr = ((VADDRPacket) kpp).getVaddr();
remoteVaddr = vdr;
sendPacket(new VADDRACKPacket());
if (fst.compareAndSet(true, false)) {
// coll.resetCoolingTime();
status.setState(LinkStatus.UP);
KLALBRemoteLink.this.onOnlineStateUpdate();
if(vdr.getAddress().equals(klalbController.getSelf().getAddress())){
close();
}else {
remoteVaddr = vdr;
sendPacket(new VADDRACKPacket());
if (fst.compareAndSet(true, false)) {
// coll.resetCoolingTime();
status.setState(LinkStatus.UP);
KLALBRemoteLink.this.onOnlineStateUpdate();
}
KLALBRemoteLink.this.onLocatorUpdate();
}
KLALBRemoteLink.this.onLocatorUpdate();
break;
case KLALBPacket.VADDRACK:
break;
@@ -597,7 +597,11 @@ public class KLALBStateGUI3 extends XFrame {
JButton btnNewButton = new JButton(UIEnv.getRsb().getString("addline"));
btnNewButton.addActionListener(e -> {
try {
kc.addRemoteLines(new MultipurposeSocketAddress(textField.getText()));
MultipurposeSocketAddress mpsa= new MultipurposeSocketAddress(textField.getText());
Thread t=new Thread(()->{
kc.addRemoteLines(mpsa);
});
t.start();
} catch (RuntimeException ex) {
JOptionPane.showMessageDialog(KLALBStateGUI3.this, "Input format error", "Error",
JOptionPane.ERROR_MESSAGE);
@@ -888,8 +892,8 @@ public class KLALBStateGUI3 extends XFrame {
performanceStrategy = new ComboSettingItem(UIEnv.getRsb().getString("performancestrategy"),
CONST.itemwidth, CONST.settingheight);
comboPerformance = performanceStrategy.getComboBox();
comboPerformance.addItem("BBR");
comboPerformance.addItem("Vegas2");
comboPerformance.addItem("1");
comboPerformance.addItem("2");
settings.getView().add(performanceStrategy);