mirror of
https://github.com/vx3r/wg-gen-web.git
synced 2025-04-01 16:36:52 +00:00
fix: Printf format %s has arg #1 of wrong type int
This commit is contained in:
parent
4fd1e34f5f
commit
6a4192844e
@ -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 == "" {
|
||||
|
Loading…
Reference in New Issue
Block a user