diff --git a/lib/service/servicecfg/app.go b/lib/service/servicecfg/app.go index e459a61013bc2..3b0b78df7f6cd 100644 --- a/lib/service/servicecfg/app.go +++ b/lib/service/servicecfg/app.go @@ -224,7 +224,7 @@ func (a *App) checkPorts() error { } for _, portRange := range a.TCPPorts { - if err := netutils.ValidatePortRange(int(portRange.Port), int(portRange.EndPort)); err != nil { + if err := netutils.ValidatePortRange(portRange.Port, portRange.EndPort); err != nil { return trace.Wrap(err, "validating a port range of a TCP app") } }