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

pull/1283/head
zhengkunwang223 2 years ago committed by GitHub
parent c7a3ef7d72
commit a41d4e55aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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