puppetlabs/Razor — pull request #42 by tjmcs (2012-05-25 22:29:05+00:00)
Title: Ammendment to fix for issue #36

Fixes problem where the localhost IP address is the first address found in the list of IP addresses for the Razor server node. The new code skips any IP addresses that look like an IP address when searching for private, then public IP addresses and then looks for a localhost IP address for the server in the list if neither a private nor a public IP address can be found. As a last resort, the value "127.0.0.1" is returned.