summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/server.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/client/server.go b/client/server.go
index c136913..bc6b1fe 100644
--- a/client/server.go
+++ b/client/server.go
@@ -624,12 +624,7 @@ func (c *Client) StartFailover(gateway string, wgMTU int, readRxBytes func() (in
return false, errors.New("Profile does not support OpenVPN fallback")
}
- monitor, monitorErr := failover.New(readRxBytes, c.Logger)
- if monitorErr != nil {
- return false, monitorErr
- }
- // Initialize the client's monitor
- c.Failover = monitor
+ c.Failover = failover.New(readRxBytes, c.Logger)
return c.Failover.Start(gateway, wgMTU)
}