KLALB V3.6.0 写了一半
This commit is contained in:
@@ -23,6 +23,16 @@ public class KLALBControllerConfigItem extends KLALBConfigItem {
|
||||
private List<MultipurposeSocketAddress>LineTable=new ArrayList<>();
|
||||
private List<MultipurposeSocketAddress>ConnectLineTable=new ArrayList<>();
|
||||
private List<MultipurposeSocketAddress>ntpServerTable=new ArrayList<>();
|
||||
private boolean denyLineTableQuery=false;
|
||||
private boolean denyLineTableBroadcast=false;
|
||||
private String congestionAlgorithm="BBR";
|
||||
private double delayUpperBound=1.20;
|
||||
private double delayLowerBound=1.15;
|
||||
private long nagleDelayTime=1000000L;
|
||||
private long linkNagleDelayTime=1000000L;
|
||||
private int linkConnectionsCount=1;
|
||||
private String TUNName=CONST.KLALB_S_RV6;
|
||||
|
||||
public void setNetworkInterfaceExcepts(List<String> networkInterfaceExcepts) {
|
||||
NetworkInterfaceExcepts = networkInterfaceExcepts;
|
||||
}
|
||||
@@ -34,24 +44,6 @@ public class KLALBControllerConfigItem extends KLALBConfigItem {
|
||||
|
||||
|
||||
|
||||
public KLALBControllerConfigItem(String type, boolean nogui, String virtualAddress, Long virtualASN,
|
||||
List<InetAddress> dNS, MultipurposeSocketAddress tCPListen, MultipurposeSocketAddress uDPListen,
|
||||
String virtualSocketName, List<MultipurposeSocketAddress> lineTable,
|
||||
List<MultipurposeSocketAddress> connectLineTable) {
|
||||
super(type);
|
||||
this.nogui = nogui;
|
||||
VirtualAddress = virtualAddress;
|
||||
VirtualASN = virtualASN;
|
||||
DNS = dNS;
|
||||
TCPListen = tCPListen;
|
||||
UDPListen = uDPListen;
|
||||
VirtualSocketName = virtualSocketName;
|
||||
LineTable = lineTable;
|
||||
ConnectLineTable = connectLineTable;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public List<String> getNetworkInterfaceExcepts() {
|
||||
return NetworkInterfaceExcepts;
|
||||
@@ -195,16 +187,126 @@ public class KLALBControllerConfigItem extends KLALBConfigItem {
|
||||
this.ntpServerTable = ntpServerTable;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public String getCongestionAlgorithm() {
|
||||
return congestionAlgorithm;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public void setCongestionAlgorithm(String congestionAlgorithm) {
|
||||
this.congestionAlgorithm = congestionAlgorithm;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public double getDelayUpperBound() {
|
||||
return delayUpperBound;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public void setDelayUpperBound(double delayUpperBound) {
|
||||
this.delayUpperBound = delayUpperBound;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public double getDelayLowerBound() {
|
||||
return delayLowerBound;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public void setDelayLowerBound(double delayLowerBound) {
|
||||
this.delayLowerBound = delayLowerBound;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public boolean isDenyLineTableQuery() {
|
||||
return denyLineTableQuery;
|
||||
}
|
||||
|
||||
|
||||
public void setDenyLineTableQuery(boolean denyLineTableQuery) {
|
||||
this.denyLineTableQuery = denyLineTableQuery;
|
||||
}
|
||||
|
||||
|
||||
public boolean isDenyLineTableBroadcast() {
|
||||
return denyLineTableBroadcast;
|
||||
}
|
||||
|
||||
|
||||
public void setDenyLineTableBroadcast(boolean denyLineTableBroadcast) {
|
||||
this.denyLineTableBroadcast = denyLineTableBroadcast;
|
||||
}
|
||||
|
||||
|
||||
public long getNagleDelayTime() {
|
||||
return nagleDelayTime;
|
||||
}
|
||||
|
||||
|
||||
public void setNagleDelayTime(long nagleDelayTime) {
|
||||
this.nagleDelayTime = nagleDelayTime;
|
||||
}
|
||||
|
||||
|
||||
public int getLinkConnectionsCount() {
|
||||
return linkConnectionsCount;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void setLinkConnectionsCount(int linkConnectionsCount) {
|
||||
this.linkConnectionsCount = linkConnectionsCount;
|
||||
}
|
||||
|
||||
|
||||
public long getLinkNagleDelayTime() {
|
||||
return linkNagleDelayTime;
|
||||
}
|
||||
|
||||
|
||||
public void setLinkNagleDelayTime(long linkNagleDelayTime) {
|
||||
this.linkNagleDelayTime = linkNagleDelayTime;
|
||||
}
|
||||
|
||||
|
||||
public String getTUNName() {
|
||||
return TUNName;
|
||||
}
|
||||
|
||||
|
||||
public void setTUNName(String tUNName) {
|
||||
TUNName = tUNName;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "KLALBControllerConfigItem [language=" + language + ", nogui=" + nogui + ", VirtualAddress="
|
||||
+ VirtualAddress + ", VirtualASN=" + VirtualASN + ", DNS=" + DNS + ", TCPListen=" + TCPListen
|
||||
+ ", UDPListen=" + UDPListen + ", VirtualSocketName=" + VirtualSocketName + ", LineTable=" + LineTable
|
||||
+ ", ConnectLineTable=" + ConnectLineTable + ", ntpServerTable=" + ntpServerTable
|
||||
+ ", NetworkInterfaceExcepts=" + NetworkInterfaceExcepts + "]";
|
||||
+ ", denyLineTableQuery=" + denyLineTableQuery + ", denyLineTableBroadcast=" + denyLineTableBroadcast
|
||||
+ ", congestionAlgorithm=" + congestionAlgorithm + ", delayUpperBound=" + delayUpperBound
|
||||
+ ", delayLowerBound=" + delayLowerBound + ", nagleDelayTime=" + nagleDelayTime
|
||||
+ ", linkNagleDelayTime=" + linkNagleDelayTime + ", linkConnectionsCount=" + linkConnectionsCount
|
||||
+ ", TUNName=" + TUNName + ", NetworkInterfaceExcepts=" + NetworkInterfaceExcepts + "]";
|
||||
}
|
||||
|
||||
|
||||
@@ -218,11 +320,23 @@ public class KLALBControllerConfigItem extends KLALBConfigItem {
|
||||
result = prime * result + ((LineTable == null) ? 0 : LineTable.hashCode());
|
||||
result = prime * result + ((NetworkInterfaceExcepts == null) ? 0 : NetworkInterfaceExcepts.hashCode());
|
||||
result = prime * result + ((TCPListen == null) ? 0 : TCPListen.hashCode());
|
||||
result = prime * result + ((TUNName == null) ? 0 : TUNName.hashCode());
|
||||
result = prime * result + ((UDPListen == null) ? 0 : UDPListen.hashCode());
|
||||
result = prime * result + ((VirtualASN == null) ? 0 : VirtualASN.hashCode());
|
||||
result = prime * result + ((VirtualAddress == null) ? 0 : VirtualAddress.hashCode());
|
||||
result = prime * result + ((VirtualSocketName == null) ? 0 : VirtualSocketName.hashCode());
|
||||
result = prime * result + ((congestionAlgorithm == null) ? 0 : congestionAlgorithm.hashCode());
|
||||
long temp;
|
||||
temp = Double.doubleToLongBits(delayLowerBound);
|
||||
result = prime * result + (int) (temp ^ (temp >>> 32));
|
||||
temp = Double.doubleToLongBits(delayUpperBound);
|
||||
result = prime * result + (int) (temp ^ (temp >>> 32));
|
||||
result = prime * result + (denyLineTableBroadcast ? 1231 : 1237);
|
||||
result = prime * result + (denyLineTableQuery ? 1231 : 1237);
|
||||
result = prime * result + ((language == null) ? 0 : language.hashCode());
|
||||
result = prime * result + linkConnectionsCount;
|
||||
result = prime * result + (int) (linkNagleDelayTime ^ (linkNagleDelayTime >>> 32));
|
||||
result = prime * result + (int) (nagleDelayTime ^ (nagleDelayTime >>> 32));
|
||||
result = prime * result + (nogui ? 1231 : 1237);
|
||||
result = prime * result + ((ntpServerTable == null) ? 0 : ntpServerTable.hashCode());
|
||||
return result;
|
||||
@@ -264,6 +378,11 @@ public class KLALBControllerConfigItem extends KLALBConfigItem {
|
||||
return false;
|
||||
} else if (!TCPListen.equals(other.TCPListen))
|
||||
return false;
|
||||
if (TUNName == null) {
|
||||
if (other.TUNName != null)
|
||||
return false;
|
||||
} else if (!TUNName.equals(other.TUNName))
|
||||
return false;
|
||||
if (UDPListen == null) {
|
||||
if (other.UDPListen != null)
|
||||
return false;
|
||||
@@ -284,11 +403,30 @@ public class KLALBControllerConfigItem extends KLALBConfigItem {
|
||||
return false;
|
||||
} else if (!VirtualSocketName.equals(other.VirtualSocketName))
|
||||
return false;
|
||||
if (congestionAlgorithm == null) {
|
||||
if (other.congestionAlgorithm != null)
|
||||
return false;
|
||||
} else if (!congestionAlgorithm.equals(other.congestionAlgorithm))
|
||||
return false;
|
||||
if (Double.doubleToLongBits(delayLowerBound) != Double.doubleToLongBits(other.delayLowerBound))
|
||||
return false;
|
||||
if (Double.doubleToLongBits(delayUpperBound) != Double.doubleToLongBits(other.delayUpperBound))
|
||||
return false;
|
||||
if (denyLineTableBroadcast != other.denyLineTableBroadcast)
|
||||
return false;
|
||||
if (denyLineTableQuery != other.denyLineTableQuery)
|
||||
return false;
|
||||
if (language == null) {
|
||||
if (other.language != null)
|
||||
return false;
|
||||
} else if (!language.equals(other.language))
|
||||
return false;
|
||||
if (linkConnectionsCount != other.linkConnectionsCount)
|
||||
return false;
|
||||
if (linkNagleDelayTime != other.linkNagleDelayTime)
|
||||
return false;
|
||||
if (nagleDelayTime != other.nagleDelayTime)
|
||||
return false;
|
||||
if (nogui != other.nogui)
|
||||
return false;
|
||||
if (ntpServerTable == null) {
|
||||
|
||||
Reference in New Issue
Block a user