From ef3ab850cd5be87ef594d6ac1ef94af935b1462a Mon Sep 17 00:00:00 2001 From: Berger Eugene Date: Mon, 27 Feb 2023 23:30:45 +0200 Subject: [PATCH] Identify client without args locality --- src/config/config.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/config/config.go b/src/config/config.go index f22612b..ad118cf 100644 --- a/src/config/config.go +++ b/src/config/config.go @@ -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 }