Skip to content
Browse files

Updated to check if LOCAL_ADDR is set in the case that SERVER_ADDR is…

…n't available. Present in IIS 7.5
  • Loading branch information...
1 parent 3550f49 commit bc94d136ac6811fcbbfa0c1106b562f75f17131c @ericcholis ericcholis committed Apr 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 action/Request.php
View
2 action/Request.php
@@ -259,7 +259,7 @@ public function env($key) {
}
return false;
case 'SERVER_ADDR':
- if ($this->_env['SERVER_ADDR'] == '') {
+ if (empty($this->_env['SERVER_ADDR']) && !empty($this->_env['LOCAL_ADDR'])) {
return $this->_env['LOCAL_ADDR'];
}
return $this->_env['SERVER_ADDR'];

0 comments on commit bc94d13

Please sign in to comment.
Something went wrong with that request. Please try again.