close connection on restart inbound #684

Using new tracker
This commit is contained in:
Alireza Ahmadi
2025-07-30 12:20:25 +02:00
parent 58fd5f17cf
commit dd7e81c557
4 changed files with 157 additions and 12 deletions
+3
View File
@@ -341,6 +341,9 @@ func (s *InboundService) RestartInbounds(tx *gorm.DB, ids []uint) error {
if err != nil && err != os.ErrInvalid {
return err
}
// Close all existing connections
corePtr.GetInstance().ConnTracker().CloseConnByInbound(inbound.Tag)
inboundConfig, err := inbound.MarshalJSON()
if err != nil {
return err