test with local prosody without conferenc

This commit is contained in:
Jesse Kuang 2019-01-10 20:43:44 +08:00
parent 1e7b50b41c
commit 224305b3ef

View File

@ -45,6 +45,10 @@ func main() {
ServerName: serverName(*server), ServerName: serverName(*server),
InsecureSkipVerify: false, InsecureSkipVerify: false,
} }
} else {
xmpp.DefaultConfig = tls.Config{
InsecureSkipVerify: true,
}
} }
var talk *xmpp.Client var talk *xmpp.Client
@ -114,7 +118,7 @@ func main() {
// get roster first // get roster first
talk.Roster() talk.Roster()
// test conf // test conf
talk.JoinMUCNoHistory("test@conference.jabb3r.org", "bot") //talk.JoinMUCNoHistory("test@conference.jabb3r.org", "bot")
for { for {
in := bufio.NewReader(os.Stdin) in := bufio.NewReader(os.Stdin)
line, err := in.ReadString('\n') line, err := in.ReadString('\n')