mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2025-11-16 14:43:44 -08:00
Move address into transport config
This makes it possible to use a factory function to create a transport of the right type and not having to repeat the address when calling Transport.Connect()
This commit is contained in:
committed by
Mickaël Rémond
parent
f8d0e99696
commit
7fa4b06705
@@ -32,7 +32,9 @@ func main() {
|
||||
|
||||
// 2. Prepare XMPP client
|
||||
config := xmpp.Config{
|
||||
Address: *address,
|
||||
TransportConfiguration: xmpp.TransportConfiguration{
|
||||
Address: *address,
|
||||
},
|
||||
Jid: *jid,
|
||||
Credential: xmpp.Password(*password),
|
||||
// StreamLogger: os.Stdout,
|
||||
|
||||
Reference in New Issue
Block a user