diff options
author | obscuren <geffobscura@gmail.com> | 2014-03-21 00:27:48 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-03-21 00:27:48 +0800 |
commit | f21eb88ad1cf54b342187e8d3b55374a695cd524 (patch) | |
tree | 48ab9c3ebfd00aa9fbd139d8848c67525571aef2 /ethutil/config.go | |
parent | c642094cac6ee6fb0215d7510cc57a719c2a2689 (diff) | |
download | go-tangerine-f21eb88ad1cf54b342187e8d3b55374a695cd524.tar go-tangerine-f21eb88ad1cf54b342187e8d3b55374a695cd524.tar.gz go-tangerine-f21eb88ad1cf54b342187e8d3b55374a695cd524.tar.bz2 go-tangerine-f21eb88ad1cf54b342187e8d3b55374a695cd524.tar.lz go-tangerine-f21eb88ad1cf54b342187e8d3b55374a695cd524.tar.xz go-tangerine-f21eb88ad1cf54b342187e8d3b55374a695cd524.tar.zst go-tangerine-f21eb88ad1cf54b342187e8d3b55374a695cd524.zip |
Some minor updates
Diffstat (limited to 'ethutil/config.go')
-rw-r--r-- | ethutil/config.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ethutil/config.go b/ethutil/config.go index 436c12b92..54b066fb9 100644 --- a/ethutil/config.go +++ b/ethutil/config.go @@ -50,12 +50,16 @@ func ReadConfig(base string) *config { Config = &config{ExecPath: path, Debug: true, Ver: "0.3.1"} Config.Log = NewLogger(LogFile|LogStd, LogLevelDebug) - Config.ClientString = fmt.Sprintf("/Ethereum(G) v%s/%s", Config.Ver, runtime.GOOS) + Config.SetClientString("/Ethereum(G)") } return Config } +func (c *config) SetClientString(str string) { + Config.ClientString = fmt.Sprintf("%s nv%s/%s", str, c.Ver, runtime.GOOS) +} + type LoggerType byte const ( |