Ignore CA errors
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Hamcha 2019-08-22 14:58:24 +02:00
parent 37435c9706
commit fdc0e326ff
Signed by: hamcha
GPG key ID: 44AD3571EB09A39E

View file

@ -1,7 +1,9 @@
package main
import (
"crypto/tls"
"fmt"
"net/http"
"os"
"strings"
@ -53,6 +55,9 @@ func main() {
initTemplates()
// Ignore CA errors
http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
api = tg.MakeAPIClient(token)
api.SetWebhook(webhookURL)
tgapi = &tgInterface{