Displaying 1 result from an estimated 1 matches for "find_host_ip".
2009 Jul 13
0
[PATCH server] remove vm forward vnc and vm host history
...private
-
- # TODO no ruby/libiptc wrapper exists, when
- # it does replace iptables command w/ calls to it
- IPTABLES_CMD='/sbin/iptables '
-
- VNC_DEBUG = false
-
- def self.debug(msg)
- puts "\n" + msg + "\n" if VNC_DEBUG
- end
-
- def self.find_host_ip(hostname)
- # FIXME
- addrinfo = Socket::getaddrinfo(hostname, nil)
- unless addrinfo.size > 0
- raise "Could not retreive address for " + hostname
- end
- result = addrinfo[0][3] # return ip address of first entry
- debug( "vm host hostname r...