호스트명 처리 보완 (로컬, 개발서버인 경우 처리)

This commit is contained in:
KNKIM 2021-09-16 16:57:28 +09:00
parent cbd381200e
commit 37d300ee68

View File

@ -166,7 +166,7 @@ public class StringUtil extends StringUtils {
log.error("[ERROR] getHostName(..) : " + e.toString()); log.error("[ERROR] getHostName(..) : " + e.toString());
return ""; return "";
} }
if("|localhost|nlib.nculture.org|nlib-dev.nculture.org|".contains(hostName)) hostName = "nlib";
return (hostName.split("\\."))[0]; return (hostName.split("\\."))[0];
} }