Use tlsConfig.ServerName as server for calling httpUpload

The server we connect to might be xmpp.example.org while we have to
disco example.org for user@example.org
This commit is contained in:
Martin Dosch 2020-04-09 15:47:03 +02:00
parent 45e69386f4
commit 2622081bad

View File

@ -276,7 +276,7 @@ func main() {
}
if *flagHttpUpload != "" {
message = httpUpload(client, strings.Split(server, ":")[0],
message = httpUpload(client, tlsConfig.ServerName,
*flagHttpUpload)
}