Cuong Manh Le
841be069b7
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
2025-01-20 15:00:08 +07:00
Cuong Manh Le
6fd3d1788a
cmd/cli: fix memory leaked when querying wmi instance
...
By ensuring the instance is closed when query finished.
2025-01-14 14:32:44 +07:00
Cuong Manh Le
70ab8032a0
cmd/cli: silent WMI query
...
The log is being printed by the wmi library, which may cause confusion.
2024-12-19 21:50:00 +07:00
Cuong Manh Le
5e9b4244e7
cmd/cli: get physical interfaces using Windows WMI
2024-12-19 21:34:26 +07:00
Cuong Manh Le
cfe1209d61
cmd/cli: use powershell to get physical interfaces
2024-09-30 18:17:41 +07:00
Cuong Manh Le
5f4a399850
cmd/cli: extend list of valid interfaces for MacOS
...
By parsing "networksetup -listallhardwareports" output to get list of
available hardware ports.
2024-08-07 15:51:11 +07:00
Cuong Manh Le
e89021ec3a
cmd/cli: only set DNS for physical interfaces on Windows
...
By filtering the interfaces by MAC address instead of name.
2024-03-04 14:49:52 +07:00