Skip to content

Commit

Permalink
IIS 서버에서 서버변수 SERVER_ADDR 이 없을 경우 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Jan 26, 2021
1 parent 96c8437 commit 35d4c2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ function g5_path()

unset($g5_path);

// IIS 에서 SERVER_ADDR 서버변수가 없다면
if(! isset($_SERVER['SERVER_ADDR'])) {
$_SERVER['SERVER_ADDR'] = isset($_SERVER['LOCAL_ADDR']) ? $_SERVER['LOCAL_ADDR'] : '';
}

// multi-dimensional array에 사용자지정 함수적용
function array_map_deep($fn, $array)
Expand Down

0 comments on commit 35d4c2f

Please sign in to comment.