0
0
mirror of https://github.com/vx3r/wg-gen-web.git synced 2025-04-01 16:36:52 +00:00

Update server.go

Correct error message about wrong MTU
This commit is contained in:
Olen 2024-09-30 19:28:13 +02:00 committed by GitHub
parent 4fd1e34f5f
commit 8064ff7443
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {