xmpp/xmpp.go
changeset 129 cccf2b2fe34d
parent 128 8342afcffc92
child 130 da6f37ae3ffe
--- a/xmpp/xmpp.go	Sat Sep 07 11:19:29 2013 -0700
+++ b/xmpp/xmpp.go	Sat Sep 07 11:46:42 2013 -0700
@@ -61,9 +61,6 @@
 	SendFilter Filter
 }
 
-// Allows the user to override the TLS configuration.
-var TlsConfig tls.Config
-
 // The client in a client-server XMPP connection.
 type Client struct {
 	// This client's JID. This will be updated asynchronously by
@@ -94,6 +91,8 @@
 	// StartSession() returns.
 	Features                     *Features
 	sendFilterAdd, recvFilterAdd chan Filter
+	// Allows the user to override the TLS configuration.
+	TlsConfig tls.Config
 }
 
 // Connect to the appropriate server and authenticate as the given JID