Skip to content
Snippets Groups Projects
Commit c0d0a410 authored by 천 진강's avatar 천 진강
Browse files

fix: conf 수정이 덮어쓰기 되던 문제 수정

parent 5b1a3a59
No related branches found
No related tags found
3 merge requests!15Feat/certificate,!9Feat/forwarding nginx 테스트, 리로드 / 파일 롤백,!8Feat/forwarding nginx 테스트, 리로드 / 파일 롤백
...@@ -95,7 +95,7 @@ public class ForwardingService { ...@@ -95,7 +95,7 @@ public class ForwardingService {
/* conf 파일 작성 및 예외 처리 */ /* conf 파일 작성 및 예외 처리 */
try { try {
BufferedWriter bw = new BufferedWriter(new FileWriter(file, true)); // 예외처리 필요 BufferedWriter bw = new BufferedWriter(new FileWriter(file, false)); // 예외처리 필요
bw.write(content); bw.write(content);
bw.flush(); bw.flush();
bw.close(); bw.close();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment