diff --git a/cmd/i2p.plugin.native/client-config.go b/cmd/i2p.plugin.native/client-config.go index 1eeb735..856c2ad 100644 --- a/cmd/i2p.plugin.native/client-config.go +++ b/cmd/i2p.plugin.native/client-config.go @@ -70,10 +70,10 @@ func (cc *ClientConfig) PrintCommand() string { exesuffix = ".exe" } if cc.Command == nil || *cc.Command == "" { - return fmt.Sprintf("clientApp.0.args=%s%s%s -shellservice.name \"%s\" -shellservice.displayname \"%s\" %s\n", CIP, *cc.Command, exesuffix, *cc.ClientDisplayName, *cc.ClientName, cc.PrintCommandArgs()) + return fmt.Sprintf("clientApp.0.args=%s%s%s -shellservice.name \"%s\" -shellservice.displayname \"%s\" %s\n", CIP, *cc.Command, exesuffix, *cc.ClientName, *cc.ClientDisplayName, *cc.ClientName, cc.PrintCommandArgs()) } name := strings.Split(*cc.Command, " ")[0] - return fmt.Sprintf("clientApp.0.args=%s%s%s -shellservice.name \"%s\" -shellservice.displayname \"%s\" %s\n", CIP, name, exesuffix, exesuffix, *cc.ClientDisplayName, cc.PrintCommandArgs()) + return fmt.Sprintf("clientApp.0.args=%s%s%s -shellservice.name \"%s\" -shellservice.displayname \"%s\" %s\n", CIP, name, exesuffix, *cc.ClientName, *cc.ClientDisplayName, cc.PrintCommandArgs()) } func (cc *ClientConfig) PrintStop() string {