From 8064ff7443de545ebf6da8d21ff2ee9a17223424 Mon Sep 17 00:00:00 2001 From: Olen Date: Mon, 30 Sep 2024 19:28:13 +0200 Subject: [PATCH] Update server.go Correct error message about wrong MTU --- model/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/server.go b/model/server.go index b9f148c..de1f46a 100644 --- a/model/server.go +++ b/model/server.go @@ -54,7 +54,7 @@ func (a Server) IsValid() []error { } // check if the mtu is valid if a.Mtu < 0 { - errs = append(errs, fmt.Errorf("MTU %d is invalid", a.PersistentKeepalive)) + errs = append(errs, fmt.Errorf("MTU %d is invalid", a.Mtu)) } // check if the address are valid for _, dns := range a.Dns {