Closed orimarti closed 8 years ago
Good thought! I'll work on this when I can, but if you'd like to put in a PR, I'd be happy to merge it. Look here for the relevant code: https://github.com/CiscoCloud/distributive/blob/master/workers/network.go#L18
OK, I'll put in a PR when I'll have some time. Thx!!
Hey @siddharthist , I'm compiling the code but the resulting binary it's returning 0 in all cases. Is there any thing to take in consideration when compiling the code?
Thx!
Nope! I just use go build
. I think you may be stumbling upon a separate bug... I'll try and track that one down today. Try using --verbosity=info
to get relevant messages.
I found the issue, and have fixed it in my most recent commit to master :smile:
Thanks!! :)
PR done! :)
Closed by PR #85
The "port" check works fine with TCP ports, but if I want to check if there is some listening UDP port it doesn't work. Maybe this should check /proc/net/udp too