Allow watchtower client to call https endoints

This commit is contained in:
Joseph Goulden 2025-09-27 15:29:37 +01:00
parent 316b0c1d87
commit 3fd4f41325
No known key found for this signature in database

View file

@ -107,7 +107,7 @@ async fn register(
);
let tower_net_addr = {
if !host.starts_with("http://") {
if !host.starts_with("http://") && !host.starts_with("https://") {
host = format!("http://{host}")
}
NetAddr::new(format!("{host}:{port}"))