mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
push: add all local ips as trusted proxies
This commit is contained in:
parent
761fe285a7
commit
6a043913fa
6 changed files with 116 additions and 45 deletions
|
|
@ -57,7 +57,11 @@ impl ActiveInstances {
|
|||
let service = cloud
|
||||
.services()
|
||||
.find(|service| service.name() == service_name)?;
|
||||
let ip = service.get_ip(&self.docker, &cloud.id).await.ok()??;
|
||||
let ip = service
|
||||
.get_ips(&self.docker, &cloud.id)
|
||||
.await
|
||||
.ok()?
|
||||
.next()?;
|
||||
SocketAddr::new(ip, service.proxy_port())
|
||||
} else {
|
||||
SocketAddr::new(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue