summaryrefslogtreecommitdiff
path: root/lib/ping.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ping.rb')
-rw-r--r--lib/ping.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ping.rb b/lib/ping.rb
index 065b1d2303..48657818cc 100644
--- a/lib/ping.rb
+++ b/lib/ping.rb
@@ -38,9 +38,9 @@
#=end
require 'timeout'
+require "socket"
module Ping
- require "socket"
def pingecho(host, timeout=5, service="echo")
begin
timeout(timeout) do