Skip to content

Commit ad0fadd

Browse files
Update internal/cmd/auth/login/login.go
Co-authored-by: cgoetz-inovex <carlo.goetz@inovex.de>
1 parent d6e8ec0 commit ad0fadd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/cmd/auth/login/login.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func configureFlags(cmd *cobra.Command) {
6767
func parseInput(p *print.Printer, cmd *cobra.Command, _ []string) (*inputModel, error) {
6868
port := flags.FlagToIntPointer(p, cmd, portFlag)
6969
// For the CLI client only callback URLs with localhost:[8000-8020] are valid. Additional callbacks must be enabled in the backend.
70-
if port != nil && (*port < 8000 || *port > 8020) {
70+
if port != nil && (*port < 8000 || 8020 < *port) {
7171
return nil, fmt.Errorf("port must be between 8000 and 8020")
7272
}
7373

0 commit comments

Comments
 (0)