Skip to content

Commit a7d0f42

Browse files
author
xiaolong
committed
https://github.com/uavorg/uavstack/issues/466
1.输出所有网卡信息时加入网卡名
1 parent d15c921 commit a7d0f42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

com.creditease.uav.base/src/main/java/com/creditease/agent/SystemStarter.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ private void checkNetworkReady() {
203203

204204
for (InetAddress addr : NetworkHelper.getAllIP()) {
205205

206-
ipmsg.append("\n").append(index++).append(" ----- ").append(addr.getHostAddress());
206+
String ip = addr.getHostAddress();
207+
208+
ipmsg.append("\n").append(index++).append(" ----- ").append(NetworkHelper.getNetCardName(ip)).append(" ----- ").append(ip);
207209
}
208210

209211
log.info(this, ipmsg.toString());

0 commit comments

Comments
 (0)