mirror of
https://github.com/openziti/ziti.git
synced 2026-10-14 08:10:17 +00:00
use previousService to get removed service config (#518)
This commit is contained in:
@@ -143,7 +143,7 @@ func (self *ServiceListener) removeService(svc *entities.Service) {
|
||||
if previousService != nil {
|
||||
if previousService.ClientConfig != nil {
|
||||
log.Infof("stopping tunnel for unavailable service: %s", previousService.Name)
|
||||
useCnt := self.addresses[svc.ClientConfig.Hostname]
|
||||
useCnt := self.addresses[previousService.ClientConfig.Hostname]
|
||||
err := self.interceptor.StopIntercepting(previousService.Name, useCnt == 1)
|
||||
if err != nil {
|
||||
log.Errorf("failed to stop intercepting: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user