优化多网卡下的localIp获取

This commit is contained in:
648540858
2022-11-17 17:01:54 +08:00
parent d340a37a00
commit 23710f1c64
14 changed files with 194 additions and 154 deletions

View File

@@ -5,7 +5,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
@Schema(description = "流信息")
public class StreamInfo implements Serializable {
public class StreamInfo implements Serializable, Cloneable{
@Schema(description = "应用名")
private String app;
@@ -463,4 +463,15 @@ public class StreamInfo implements Serializable {
public void setTransactionInfo(TransactionInfo transactionInfo) {
this.transactionInfo = transactionInfo;
}
@Override
public StreamInfo clone() {
StreamInfo instance = null;
try{
instance = (StreamInfo)super.clone();
}catch(CloneNotSupportedException e) {
e.printStackTrace();
}
return instance;
}
}