Skip to content

Commit

Permalink
Identify client without args locality
Browse files Browse the repository at this point in the history
  • Loading branch information
F1bonacc1 committed Feb 27, 2023
1 parent 9ed6dbd commit ef3ab85
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ func mode() string {
}

func isClient() bool {
if len(os.Args) > 1 {
return os.Args[1] == "process"
for _, proc := range os.Args {
if proc == "process" {
return true
}
}
return false
}

0 comments on commit ef3ab85

Please sign in to comment.