|
|
@ -30,7 +30,7 @@ func connect(options xmpp.Options, directTLS bool) (*xmpp.Client, error) {
|
|
|
|
// Connect to server
|
|
|
|
// Connect to server
|
|
|
|
client, err := options.NewClient()
|
|
|
|
client, err := options.NewClient()
|
|
|
|
if err == nil {
|
|
|
|
if err == nil {
|
|
|
|
return client, err
|
|
|
|
return client, nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if adr.Type == "xmpps-client" {
|
|
|
|
} else if adr.Type == "xmpps-client" {
|
|
|
|
// Use direct TLS
|
|
|
|
// Use direct TLS
|
|
|
@ -40,7 +40,7 @@ func connect(options xmpp.Options, directTLS bool) (*xmpp.Client, error) {
|
|
|
|
// Connect to server
|
|
|
|
// Connect to server
|
|
|
|
client, err := options.NewClient()
|
|
|
|
client, err := options.NewClient()
|
|
|
|
if err == nil {
|
|
|
|
if err == nil {
|
|
|
|
return client, err
|
|
|
|
return client, nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|