seashell / drago

☁️ Securely connect anything with WireGuard® and manage all your networks from a single place.

Home Page:https://seashell.github.io/drago

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Panic on `drago interface update`

0x1a8510f2 opened this issue · comments

Describe the bug
When running drago interface update:

interface update flag redefined: address

================================================================================
Drago has encountered a fatal error. This is a bug!
We would appreciate a report: https://github.com/seashell/drago/issues/
Please provide all of the below text in your report.
================================================================================
Drago Version:       dev
Go Version:          go1.16.5
Go Compiler:         gc
Architecture:        amd64
Operating System:    linux
Panic:               interface update flag redefined: address

goroutine 1 [running]:
runtime/debug.Stack(0xc0004299b8, 0x10a3de0, 0xc0003242e0)
        /opt/hostedtoolcache/go/1.16.5/x64/src/runtime/debug/stack.go:24 +0x9f
main.panicHandler()
        /home/runner/work/drago/drago/main.go:30 +0x76
panic(0x10a3de0, 0xc0003242e0)
        /opt/hostedtoolcache/go/1.16.5/x64/src/runtime/panic.go:965 +0x1b9
github.com/spf13/pflag.(*FlagSet).AddFlag(0xc0001ae000, 0xc000304500)
        /home/runner/go/pkg/mod/github.com/spf13/pflag@v1.0.5/flag.go:848 +0x825
github.com/spf13/pflag.(*FlagSet).VarPF(0xc0001ae000, 0x228f400, 0xc00013a1c0, 0x126e29a, 0x7, 0x0, 0x0, 0x0, 0x0, 0xc000324270)
        /home/runner/go/pkg/mod/github.com/spf13/pflag@v1.0.5/flag.go:831 +0x10b
github.com/spf13/pflag.(*FlagSet).VarP(...)
        /home/runner/go/pkg/mod/github.com/spf13/pflag@v1.0.5/flag.go:837
github.com/spf13/pflag.(*FlagSet).StringVar(0xc0001ae000, 0xc00013a1c0, 0x126e29a, 0x7, 0x0, 0x0, 0x0, 0x0)
        /home/runner/go/pkg/mod/github.com/spf13/pflag@v1.0.5/string.go:37 +0x9b
github.com/seashell/drago/command.(*InterfaceUpdateCommand).FlagSet(0xc00013a190, 0xc000429e00)
        /home/runner/work/drago/drago/command/interface_update.go:32 +0xdd
github.com/seashell/drago/command.(*InterfaceUpdateCommand).Run(0xc00013a190, 0x2296490, 0xc0001227c0, 0xc00003a190, 0x0, 0x0, 0x72f129)
        /home/runner/work/drago/drago/command/interface_update.go:51 +0x2f
github.com/seashell/drago/pkg/cli.(*CLI).Run(0xc000117680, 0x2296490, 0xc0001227c0, 0xc00003a190, 0x2, 0x2, 0xc000052060, 0x70, 0x10000c00004e138)
        /home/runner/work/drago/drago/pkg/cli/cli.go:134 +0x165
main.run(0xc00003a190, 0x2, 0x2, 0x0)
        /home/runner/work/drago/drago/main.go:74 +0x195
main.main()
        /home/runner/work/drago/drago/main.go:53 +0x65

Desktop (please complete the following information):

  • OS: openSUSE Tumbleweed