From 1f934dbf16a0abe4d750e7939a4e17b4a53ad1cc Mon Sep 17 00:00:00 2001 From: MohammadReza Palide Date: Sat, 27 Jan 2024 17:02:27 +0000 Subject: [PATCH] fix errors condition --- pkg/skysocks-monitor/api/api.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/skysocks-monitor/api/api.go b/pkg/skysocks-monitor/api/api.go index 09a77cfb..88ae6813 100644 --- a/pkg/skysocks-monitor/api/api.go +++ b/pkg/skysocks-monitor/api/api.go @@ -207,7 +207,7 @@ func (api *API) isOnline(key cipher.PubKey) (ok bool) { if len(sum) > 0 { latency = sum[0].Latency } - case vpn.ErrSetupNode, vpn.ErrNotPermitted: + case vpn.ErrNotPermitted: api.logger.WithError(skysocksErr).Infof("Skysocks error on %v transport of %v.", transport, key) default: api.logger.WithError(skysocksErr).Infof("Skysocks error on %v transport of %v.", transport, key) @@ -338,9 +338,6 @@ func RunSkysocksClient(v *visor.Visor, serverPK cipher.PubKey, appName string) ( time.Sleep(time.Second * 15) appErr, _ := v.GetAppError(appName) //nolint - if appErr == vpn.ErrSetupNode.Error() { - return []appserver.ConnectionSummary{}, vpn.ErrSetupNode - } if appErr == vpn.ErrNotPermitted.Error() { return []appserver.ConnectionSummary{}, vpn.ErrNotPermitted }