mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-07-04 01:07:49 +02:00
cmd/cli: only list physical interfaces when listing
Since these are the interfaces that ctrld will manipulate anyway. While at it, also skipping non-working devices on MacOS, by checking if the device is present in network service order
This commit is contained in:
committed by
Cuong Manh Le
parent
7833132917
commit
841be069b7
+1
-1
@@ -764,7 +764,7 @@ func netInterface(ifaceName string) (*net.Interface, error) {
|
||||
if iface == nil {
|
||||
return nil, errors.New("interface not found")
|
||||
}
|
||||
if err := patchNetIfaceName(iface); err != nil {
|
||||
if _, err := patchNetIfaceName(iface); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return iface, err
|
||||
|
||||
Reference in New Issue
Block a user