Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetSenderOS not working in 0.9.1 #696

Open
shahrukh668 opened this issue Feb 14, 2020 · 5 comments
Open

SetSenderOS not working in 0.9.1 #696

shahrukh668 opened this issue Feb 14, 2020 · 5 comments

Comments

@shahrukh668
Copy link

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
Copy link
Author

shahrukh668 commented Feb 14, 2020

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.

@mzeeshan1
Copy link

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

@shahrukh668
Copy link
Author

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...

@mzeeshan1
Copy link

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

@shahrukh668
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants