mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 08:44:09 +02:00
allow service names with - in them in proxy
This commit is contained in:
parent
fdc821cb93
commit
85071d7aa1
2 changed files with 8 additions and 2 deletions
|
|
@ -69,8 +69,9 @@ impl ActiveInstances {
|
|||
80,
|
||||
),
|
||||
// service with instance
|
||||
2 => {
|
||||
let (name, service_name) = name.rsplit_once('-').unwrap();
|
||||
2.. => {
|
||||
let service_name = name.splitn(3, '-').last()?;
|
||||
let name = &name[0..(name.len() - service_name.len() - 1)];
|
||||
let cloud = Cloud::get_by_filter(&self.docker, Some(name.into()), &self.config)
|
||||
.await
|
||||
.ok()?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue