Browse Source

feat: 删除域名的时候同步删除 ipv6 的端口监听 (#1281)

pull/1283/head
zhengkunwang223 1 year ago committed by GitHub
parent
commit
a41d4e55aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      backend/app/service/website_utils.go

4
backend/app/service/website_utils.go

@ -317,9 +317,7 @@ func deleteListenAndServerName(website model.Website, binds []string, domains []
server := config.FindServers()[0]
for _, bind := range binds {
server.DeleteListen(bind)
if website.IPV6 {
server.DeleteListen("[::]:" + bind)
}
server.DeleteListen("[::]:" + bind)
}
for _, domain := range domains {
server.DeleteServerName(domain)

Loading…
Cancel
Save