Skip to content

Commit 887160b

Browse files
authored
Merge pull request #326 from Dstack-TEE/imp-vmm-app-url
imp: when formatting app_url, skip port if it's 443
2 parents ca0f7d7 + 58fa9d6 commit 887160b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

vmm/src/app/qemu.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,14 @@ impl VmInfo {
165165
.then_some(self.instance_id.as_ref())
166166
.flatten()
167167
.map(|id| {
168-
format!(
169-
"https://{id}-{}.{}:{}",
170-
gw.agent_port, gw.base_domain, gw.port
171-
)
168+
if gw.port == 443 {
169+
format!("https://{id}-{}.{}", gw.agent_port, gw.base_domain)
170+
} else {
171+
format!(
172+
"https://{id}-{}.{}:{}",
173+
gw.agent_port, gw.base_domain, gw.port
174+
)
175+
}
172176
}),
173177
app_id: self.manifest.app_id.clone(),
174178
instance_id: self.instance_id.as_deref().map(Into::into),

0 commit comments

Comments
 (0)