nff-go icon indicating copy to clipboard operation
nff-go copied to clipboard

SetSenderOS not working in 0.9.1

Open shahrukh668 opened this issue 4 years ago • 5 comments

I recently set-up a newer version of nff-go (0.9.1) while i also have an older version of nff-go set-up in a different environment. I am facing error using SetSenderOS in nff-go-0.9.1 it gives an error (panic: interface conversion: interface {} is nil, not int) whereas the same code is running fine in my older nff-go. Is this a bug or am i missing something?

this is how i am using SetSenderOS: flow.CheckFatal(flow.SetSenderOS(tempFlow, "em4"))

attached is the screenshot of the error I am getting. interface

shahrukh668 avatar Feb 14 '20 12:02 shahrukh668

I found a difference in flow.go between both versions which is causing the issue.

this is in 0.9.1, this gives error: 0 9 1

This is in the older version i had, this works fine: othernffgo

Is there any way i can check the version of nff-go i have? As the flow.go code on this repo is the same as my older nff-go code.

shahrukh668 avatar Feb 14 '20 12:02 shahrukh668

one way to do it would be check release from github and clone that code

mzeeshan1 avatar Feb 18 '20 20:02 mzeeshan1

one way to do it would be check release from github and clone that code

That would be for a fresh clone... I meant my local clone...

shahrukh668 avatar Feb 19 '20 10:02 shahrukh668

one way to do it would be check release from github and clone that code

That would be for a fresh clone... I meant my local clone...

just run git tag from your nff-go clone that should show you the version

mzeeshan1 avatar Feb 19 '20 10:02 mzeeshan1

one way to do it would be check release from github and clone that code

That would be for a fresh clone... I meant my local clone...

just run git tag from your nff-go clone that should show you the version

ohhh... that's intelligent... but what if someone deletes the .git files?

shahrukh668 avatar Feb 19 '20 10:02 shahrukh668