fix(cli): carry the review fixes of the master port to v1.0

This commit is contained in:
Anthony Wong authored and Cuong Manh Le committed 2026-09-28 16:51:55 +07:00
1 parent 12ab2a0e71
commit f52dfd0354
24 files changed
+993 -68

No files matched your search

+3 -1
View File
@@ -74,7 +74,9 @@ func serviceNamesByDevice(r io.Reader) map[string]string {
for scanner.Scan() {
line := scanner.Text()
if strings.Contains(line, "*") {
// Network services is disabled.
// A disabled service names no device. Without the reset, the device
// line that follows takes the name of the service before it.
prevLine = ""
continue
}
device := serviceOrderDevice(line)