Skip to content

Commit 7c7ccd6

Browse files
committed
Revert #14829 Filter the virtual NIC with relative path
1 parent f7dc68f commit 7c7ccd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/LinuxBrokerHostUsageImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public int getNicCount() {
228228

229229
private boolean isPhysicalNic(Path path) {
230230
try {
231-
if (path.toRealPath().toString().contains("/virtual/")) {
231+
if (path.toString().contains("/virtual/")) {
232232
return false;
233233
}
234234
// Check the type to make sure it's ethernet (type "1")

0 commit comments

Comments
 (0)