fix: lint

This commit is contained in:
耗子
2026-02-13 00:41:02 +08:00
parent 0ea2117d96
commit f9c1510d8a
+3 -1
View File
@@ -453,7 +453,9 @@ func (s *ToolboxMigrationService) migrateWebsite(conn *request.ToolboxMigrationC
s.addLog(fmt.Sprintf("[%s] %s", site.Name, s.t.Get("creating website on remote server")))
var listens []string
for _, l := range websiteDetail.Listens {
listens = append(listens, l.Address)
if l.Address != "443" && !slices.Contains(l.Args, "ssl") { // 此阶段远程面板没有证书,添加 443 端口会报错
listens = append(listens, l.Address)
}
}
if len(listens) == 0 {
listens = []string{"80"}