method
getservername

getservername()
public
Hide source
# File lib/webrick/utils.rb, line 49 def getservername host = Socket::gethostname begin Socket::gethostbyname(host)[0] rescue host end end