Ver Fonte

Update v-list-sys-interfaces (#3910)

See: https://forum.hestiacp.com/t/network-interfaces-vlan/10539

In main.sh we already changed it 3 weeks ago
Jaap Marcus há 2 anos atrás
pai
commit
dda2f13d0f
1 ficheiros alterados com 1 adições e 4 exclusões
  1. 1 4
      bin/v-list-sys-interfaces

+ 1 - 4
bin/v-list-sys-interfaces

@@ -68,10 +68,7 @@ csv_list() {
 
 
 # Defining interface list
 # Defining interface list
 # Detect "physical" NICs only (virtual NICs created by Docker, WireGuard etc. are excluded)
 # Detect "physical" NICs only (virtual NICs created by Docker, WireGuard etc. are excluded)
-physical_nics="$(ip -d -j link show | jq -r '.[] | if .link_type == "loopback" // .linkinfo.info_kind then empty else .ifname end')"
-if [ -z "$physical_nics" ]; then
-	physical_nics="$(ip -d -j link show | jq -r '.[] | if .link_type == "loopback" then empty else .ifname end')"
-fi
+physical_nics="$(ip -d -j link show | jq -r '.[] | if .link_type == "loopback" then empty else .ifname end')"
 
 
 # Listing data
 # Listing data
 case $format in
 case $format in