Add required HTTPS prefix for Websocket
This commit is contained in:
parent
611d2c9c57
commit
edc2235f6f
@ -55,7 +55,7 @@ func StartBot() {
|
||||
|
||||
if c.Config.Telegram.Webhook.Enabled {
|
||||
var url http.URI
|
||||
url.Parse([]byte(c.Config.Telegram.Webhook.Domain), []byte(""))
|
||||
url.Parse(nil, []byte("https://"+c.Config.Telegram.Webhook.Domain))
|
||||
if len(url.Host()) == 0 {
|
||||
log.Fatal().Msg("Can't parse webhook URL: got empty host")
|
||||
}
|
||||
|
Reference in New Issue
Block a user