2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-05 20:47:18 +08:00

fix: 容器主机端口显示错误

This commit is contained in:
耗子
2025-03-12 03:05:07 +08:00
parent 1a85571fca
commit a6d27f261b
2 changed files with 3 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ func (r *containerRepo) ListAll() ([]types.Container, error) {
for _, port := range item.Ports {
ports = append(ports, types.ContainerPort{
ContainerStart: uint(port.PrivatePort),
ContainerEnd: uint(port.PublicPort),
ContainerEnd: uint(port.PrivatePort),
HostStart: uint(port.PublicPort),
HostEnd: uint(port.PublicPort),
Protocol: port.Type,

View File

@@ -2,6 +2,8 @@ package embed
import "embed"
// TODO 移到pkg目录下
//go:embed all:frontend/*
var PublicFS embed.FS