diff --git a/web/src/views/container/ContainerView.vue b/web/src/views/container/ContainerView.vue index b24f5733..707f2551 100644 --- a/web/src/views/container/ContainerView.vue +++ b/web/src/views/container/ContainerView.vue @@ -69,8 +69,12 @@ const columns: any = [ default: () => row.ports.map((port: any) => h(NTag, null, { - default: () => - `${port.host ? port.host + ':' : ''}${port.container_start}->${port.host_start}/${port.protocol}` + default: () => { + if (port.container_start == port.container_end) { + return `${port.host ? port.host + ':' : ''}${port.host_start}->${port.container_start}/${port.protocol}` + } + return `${port.host ? port.host + ':' : ''}${port.host_start}-${port.host_end}->${port.container_start}-${port.container_end}/${port.protocol}` + } }) ) })