small changes

This commit is contained in:
Alireza Ahmadi
2024-03-10 15:29:03 +01:00
parent 2a6ed18163
commit 80c3f84eac
5 changed files with 9 additions and 10 deletions

View File

@@ -941,7 +941,7 @@ func (s *InboundService) disableInvalidInbounds(tx *gorm.DB) (bool, int64, error
s.xrayApi.Init(p.GetAPIPort())
for _, tag := range tags {
err1 := s.xrayApi.DelInbound(tag)
if err == nil {
if err1 == nil {
logger.Debug("Inbound disabled by api:", tag)
} else {
logger.Debug("Error in disabling inbound by api:", err1)