Skip to content

Commit

Permalink
Merge pull request #91 from Triumers/hotfix
Browse files Browse the repository at this point in the history
[Fix] 외부망 접속 시 2차 인증 버그 수정
  • Loading branch information
moomint8 authored Jun 12, 2024
2 parents c9160f3 + 62e3831 commit a407828
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class AuthController {
@Value("${password}")
private String defaultPassword;

@Value("in-house-ip-address")
@Value("${in-house-ip-address}")
private String defaultIpAddress;

@Autowired
Expand All @@ -52,7 +52,7 @@ public ResponseEntity<CmdResponseMessageVO> isHaveAuthenticator(HttpServletReque

if (authService.isHaveAuthenticator(account)) {

if (IpAddressUtil.getClientIp(request).equals(defaultIpAddress) ||
if (IpAddressUtil.getClientIp(request).equals("121.170.161.69") ||
IpAddressUtil.getClientIp(request).equals("0:0:0:0:0:0:0:1")) {
return ResponseEntity.status(HttpStatus.OK).body(new CmdResponseMessageVO("환영합니다."));
}
Expand Down

0 comments on commit a407828

Please sign in to comment.