0
0
mirror of https://github.com/vx3r/wg-gen-web.git synced 2025-06-03 04:03:13 +00:00

Merge 6a4192844e712dcdaba9943b9c72c546868de095 into 4fd1e34f5f70f4b4fa5b5187957de3d5633abbfd

This commit is contained in:
guangwu 2023-09-01 13:25:39 +00:00 committed by GitHub
commit 96de9376a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ func (a Server) IsValid() []error {
}
// check if the listenPort is valid
if a.ListenPort < 0 || a.ListenPort > 65535 {
errs = append(errs, fmt.Errorf("listenPort %s is invalid", a.ListenPort))
errs = append(errs, fmt.Errorf("listenPort %d is invalid", a.ListenPort))
}
// check if the endpoint empty
if a.Endpoint == "" {