summaryrefslogtreecommitdiffstats
path: root/provision.inc
diff options
context:
space:
mode:
authorAntoine Beaupré2010-07-05 22:29:02 (GMT)
committerAdrian Rossouw2010-07-14 08:15:45 (GMT)
commitfa101e0762e58cd0f9652dec6addf4302aedbb69 (patch)
tree43bae98318a13d5c866fa2ec702dbd60eb0ca31e /provision.inc
parent81c4754bd07cfb82c35ccd0f280d8b1f011e4333 (diff)
also check the equivalent of hostname -f to determine localhost
Diffstat (limited to 'provision.inc')
-rw-r--r--provision.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/provision.inc b/provision.inc
index 368a5ed..2a76134 100644
--- a/provision.inc
+++ b/provision.inc
@@ -43,7 +43,7 @@ function provision_is_local_host($host) {
// your site alias. Note that sometimes 'uname -n' does not return the
// correct value. To fix it, put the correct hostname in /etc/hostname
// and then run 'hostname -F /etc/hostname'.
- return ($host == 'localhost') || ($host == '127.0.0.1') || ($host == strtolower(php_uname('n')));
+ return ($host == 'localhost') || ($host == '127.0.0.1') || ($host == strtolower(php_uname('n'))) || ($host == strtolower(gethostbyaddr(gethostbyname(php_uname('n')))));
}
/**