添加强制断开链接

This commit is contained in:
qaq
2025-06-30 16:07:59 +08:00
parent 2401a2c2cb
commit 34b943d673
+3
View File
@@ -274,6 +274,9 @@ func pauseServices(req pauseServicesRequest) error {
return errors.New(fmt.Sprintf("service %s configuration not found", stp.name))
}
// 暂停服务
stp.service.Close()
// 强制断开端口的所有连接
if serviceConfig.Addr != "" {
_ = kill.ForceClosePortConnections(serviceConfig.Addr)