lib/adhearsion/process.rb in adhearsion-2.4.0.beta1 vs lib/adhearsion/process.rb in adhearsion-2.4.0.beta2
- old
+ new
@@ -101,9 +101,11 @@
::Process.exit 1
end
def fqdn
Socket.gethostbyname(Socket.gethostname).first
+ rescue SocketError
+ Socket.gethostname
end
def self.method_missing(method_name, *args, &block)
instance.send method_name, *args, &block
end