Make user agent use the app version constants.

This commit is contained in:
Dave Collins 2013-08-08 09:12:40 -05:00
parent eab9c1f0c1
commit 48d3c5f585

View file

@ -19,7 +19,7 @@ import (
"time"
)
const userAgent = "/btcd:0.0.1/"
var userAgent = fmt.Sprintf("/btcd:%d.%d.%d/", appMajor, appMinor, appPatch)
// used by the dns seed code to pick a random last seen time
const (