You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.../bluefox/src> ./bluefox -c 127.0.0.1 1234
panic: runtime error: index out of range [4] with length 4
goroutine 1 [running]:
main.main()
.../bluefox/src/bluefox.go:272 +0x592
The text was updated successfully, but these errors were encountered:
Hi there. It seems the computation which checks for os.Args[4] is happening even when os.Args does not have the payload option. The issue was I did not increase it to the correct os.Args value and used an &&.
In my new fix I nested the strings.Compare and stated os.Args must be greater than 4 to accomodate the payload.
This should work now. Thank you for your insights and let me know if you catch any other errors with my code. It seems I did not catch this one as I was too busy implementing the payload feature.
Running demo code results in panic.
The text was updated successfully, but these errors were encountered: