Code cleanup
This commit is contained in:
@@ -36,19 +36,6 @@ func Init() {
|
|||||||
// TODO load configs and init clients from the config file
|
// TODO load configs and init clients from the config file
|
||||||
xmppService = XMPPService{
|
xmppService = XMPPService{
|
||||||
Router: xmpp.NewRouter(),
|
Router: xmpp.NewRouter(),
|
||||||
// Configs: []xmpp.Config{
|
|
||||||
// {
|
|
||||||
// TransportConfiguration: xmpp.TransportConfiguration{
|
|
||||||
// Address: appConfig.AppConfig.Service.Address + ":" + appConfig.AppConfig.Service.Port,
|
|
||||||
// Domain: appConfig.AppConfig.Service.Domain,
|
|
||||||
// TLSConfig: &tls.Config{InsecureSkipVerify: true},
|
|
||||||
// },
|
|
||||||
// Jid: "admin@localhost",
|
|
||||||
// Credential: xmpp.Password("openadmin123"),
|
|
||||||
// StreamLogger: os.Stdout,
|
|
||||||
// Insecure: true,
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
}
|
}
|
||||||
xmppService.Router.HandleFunc("message", handleMessage)
|
xmppService.Router.HandleFunc("message", handleMessage)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user