hdkv
/
fwzookeeper
Archived
1
Fork 0

Add required HTTPS prefix for Websocket

master
Vladimir Hodakov 2018-11-29 23:41:37 +04:00
parent 611d2c9c57
commit edc2235f6f
Signed by: Vladimir Hodakov
GPG Key ID: 673980B6882F82C6
1 changed files with 1 additions and 1 deletions

View File

@ -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")
}