Skip to content

Commit cbf9e3f

Browse files
committed
fix: Try to keep disabled vpn interface on windows
1 parent 2d12813 commit cbf9e3f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Changes

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ core:
1111

1212
inventory:
1313
* Fix rare windows perl error during drives, ipv6 network or videos inventory
14+
* Always keep disabled network interface on windows if it includes "vpn" string
15+
in description
1416

1517
netdiscovery/netinventory:
1618
* fix #768: Added Aerohive devices support

lib/GLPI/Agent/Tools/Win32/NetAdapter.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ sub getInterfaces {
2828

2929
return $self->getInterfacesWithAddresses() if $self->hasAddresses();
3030

31-
return unless $self->{_config}->{MACADDR};
31+
return unless $self->{_config}->{MACADDR} || $self->_getDescription() =~ /vpn/i;
3232

3333
return $self->getBaseInterface();
3434
}

0 commit comments

Comments
 (0)