forked from jshiffer/go-xmpp
test with local prosody without conferenc
This commit is contained in:
parent
1e7b50b41c
commit
224305b3ef
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user