Skip to content

[BUG] Commandline parameter for RequireLocalHostAuth doesn't match docs #30

Description

@DRKV333

Bug Description

According to the docs here:
https://alia5.github.io/VIIPER/stable/cli/server/
https://alia5.github.io/VIIPER/stable/cli/configuration/

The way to set RequireLocalHostAuth from the commandline is with --api.require-localhost-auth, but it's actually --api.require-local-host-auth (With "local host" as two words.)

To Reproduce

$ ./viiper server --api.require-localhost-auth=true
                                                              Usage: VIIPER server [flags]
                                                              
                                                              Start the VIIPER USB-IP server
...

VIIPER: error: unknown flag --api.require-localhost-auth, did you mean "--api.require-local-host-auth"?

Expected Behavior

I'm guessing the docs are right and it's supposed to be "localhost", since it's like that everywhere else.

Actual Behavior

(See above)

Screenshots/Logs

(See above)

Environment

  • OS: arch linux
  • VIIPER Version: 0.7.0-7-g88f66f1
  • USB-IP Version: 7.0.12-1

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions