Closed jcastillocano closed 8 years ago
Using ruby 2.X syntax on test file.
The behaviour of UDP ports is more like 'having a socket open on it by a process' than 'I can reach that port because I have a valid response', but I guess it's worthy to have it integrated in check-ports.rb.
I added a new param (Protocol) to be able to check both TCP and UDP ports using TCPSocket and UDPSocket classes.
I also added some spec tests for check-ports.rb.
Please review it!