mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-07-03 03:12:30 +00:00
Improve comments on new AddUserAgent function.
This commit is contained in:
parent
620cbdeb8e
commit
d848bc453b
@ -274,7 +274,9 @@ func validateUserAgent(userAgent string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// AddUserAgent adds a custom user agent
|
||||
// AddUserAgent adds a user agent to the user agent string for the version
|
||||
// message. The version string is not defined to any strict format, although
|
||||
// it is recommended to use the form "major.minor.revision" e.g. "2.6.41".
|
||||
func (msg *MsgVersion) AddUserAgent(name string, version string,
|
||||
comments ...string) error {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user