examples/interact.go
changeset 78 a5848c75d270
parent 77 edda99a69002
--- a/examples/interact.go	Thu Jan 19 16:23:15 2012 -0600
+++ b/examples/interact.go	Thu Jan 19 16:27:55 2012 -0600
@@ -6,6 +6,7 @@
 
 import (
 	"cjyar/xmpp"
+	"crypto/tls"
 	"flag"
 	"fmt"
 	"log"
@@ -19,6 +20,8 @@
 	xmpp.Log = log.New(os.Stderr, "", 0)
 	xmpp.Loglevel = syslog.LOG_NOTICE
 
+	xmpp.TLSConfig = &tls.Config{InsecureSkipVerify: true}
+
 	var jid xmpp.JID
 	flag.Var(&jid, "jid", "JID to log in as")
 	var pw *string = flag.String("pw", "", "password")