summaryrefslogtreecommitdiff
path: root/internal/failover/monitor.go
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroen.wijenbergh@geant.org>2026-02-23 12:08:51 +0100
committerJeroen Wijenbergh <jeroen.wijenbergh@geant.org>2026-02-26 13:17:46 +0100
commit7d5e58a383c1228e7e3534e2d31dd1d6c8a45ee6 (patch)
treec6e564826a574e8d7f8fa0572a2c210dfbe42cae /internal/failover/monitor.go
parent418dd15f533cd2708ea87019f7fefb1ab27885a5 (diff)
Failover: Support v6 gateway
Useful for v6 only VPNs
Diffstat (limited to 'internal/failover/monitor.go')
-rw-r--r--internal/failover/monitor.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/internal/failover/monitor.go b/internal/failover/monitor.go
index 0d319d6..2c14980 100644
--- a/internal/failover/monitor.go
+++ b/internal/failover/monitor.go
@@ -51,10 +51,6 @@ func (m *DroppedConMon) dropped(startBytes int64) (bool, error) {
// This does not check Rx bytes every tick, but rather when pAlive or pDropped is reached
// It returns an error if there was an invalid input or a ping was failed to be sent
func (m *DroppedConMon) Start(ctx context.Context, gateway string, mtuSize int) (bool, error) {
- if mtuSize < mtuOverhead {
- return false, fmt.Errorf("invalid MTU size given, MTU has to be at least: %v bytes", mtuOverhead)
- }
-
// Create a ping struct with our mtu size
p, err := m.newPinger(gateway, mtuSize)
if err != nil {