Skip to content

Commit b95a7e9

Browse files
committed
webui: add dedicated IP UI to app.html
1 parent 3c8c195 commit b95a7e9

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

vmm/ui/src/templates/app.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,11 @@ <h1 class="app-title">dstack-vmm</h1>
320320
<div v-if="vm.configuration?.ports?.length" class="port-mappings">
321321
<h4>Port Mappings</h4>
322322
<div v-for="(port, index) in vm.configuration.ports" :key="index" class="port-item">
323-
<span>{{ port.host_address === '127.0.0.1' ? 'Local' : 'Public' }}</span>
323+
<span>{{
324+
port.host_address === '127.0.0.1'
325+
? 'Local'
326+
: (port.host_address === '0.0.0.0' ? 'Public' : port.host_address)
327+
}}</span>
324328
<span>{{ port.protocol.toUpperCase() }}: {{ port.host_port }} → {{ port.vm_port }}</span>
325329
</div>
326330
</div>

0 commit comments

Comments
 (0)