Closed ghost closed 2 years ago
I try to modify it to:
devices := []string{""}
if StartFlags.Device != "" {
devices = strings.Split(StartFlags.Device, ",")
if !ptcp.ConnectionMonitor(devices) {
return
}
} else {
ptcp.ConnectionMonitor(devices)
}
It looks like it can be compiled and used normally.
OK