Fix insecure TLS and bump version to 3
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
"path/filepath"
|
||||
"crypto/tls"
|
||||
|
||||
"github.com/diamondburned/gotk4/pkg/gdk/v4"
|
||||
"github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2"
|
||||
@@ -138,6 +139,7 @@ func main() {
|
||||
return charset.NewReaderLabel(c, input)
|
||||
},
|
||||
ConnectTimeout: 300,
|
||||
TLSConfig: &tls.Config{InsecureSkipVerify: loadedConfig.Insecure},
|
||||
},
|
||||
Jid: loadedConfig.Username + "/" + loadedConfig.Resource,
|
||||
Credential: xmpp.Password(loadedConfig.Password),
|
||||
|
||||
Reference in New Issue
Block a user