mirror of
https://salsa.debian.org/mdosch/go-sendxmpp
synced 2024-11-12 13:10:25 +00:00
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:
parent
45e69386f4
commit
2622081bad
@ -276,7 +276,7 @@ func main() {
|
||||
}
|
||||
|
||||
if *flagHttpUpload != "" {
|
||||
message = httpUpload(client, strings.Split(server, ":")[0],
|
||||
message = httpUpload(client, tlsConfig.ServerName,
|
||||
*flagHttpUpload)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user