set a default clientversion of 0.11
This commit is contained in:
parent
f2abf8893c
commit
9eb9cf0726
@ -17,6 +17,12 @@ type HubConnectionOptions struct {
|
||||
func (this *HubConnectionOptions) prepareConnection() *HubConnection {
|
||||
if this.Self.ClientTag == "" {
|
||||
this.Self.ClientTag = DEFAULT_CLIENT_TAG
|
||||
this.Self.ClientVersion = DEFAULT_CLIENT_VERSION
|
||||
}
|
||||
|
||||
// Shouldn't be blank either
|
||||
if this.Self.ClientVersion == "" {
|
||||
this.Self.ClientVersion = "0"
|
||||
}
|
||||
|
||||
hc := HubConnection{
|
||||
|
@ -9,10 +9,11 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
DEFAULT_CLIENT_TAG string = "libnmdc.go"
|
||||
DEFAULT_HUB_NAME string = "(unknown)"
|
||||
SEND_KEEPALIVE_EVERY time.Duration = 29 * time.Second
|
||||
AUTO_RECONNECT_AFTER time.Duration = 30 * time.Second
|
||||
DEFAULT_CLIENT_TAG string = "libnmdc.go"
|
||||
DEFAULT_CLIENT_VERSION string = "0.11"
|
||||
DEFAULT_HUB_NAME string = "(unknown)"
|
||||
SEND_KEEPALIVE_EVERY time.Duration = 29 * time.Second
|
||||
AUTO_RECONNECT_AFTER time.Duration = 30 * time.Second
|
||||
)
|
||||
|
||||
var rx_protocolMessage *regexp.Regexp
|
||||
|
Loading…
Reference in New Issue
Block a user