mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-10-12 01:58:46 +02:00
fix(cli): carry the review fixes of the master port to v1.0
This commit is contained in:
1 parent
12ab2a0e71
commit
f52dfd0354
24 files changed
+993
-68
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user