diff --git a/app/src/main/java/lightcontainer/protocol/rules/writer/RemoveFileErrorRule.java b/app/src/main/java/lightcontainer/protocol/rules/writer/RemoveFileErrorRule.java index c071683..5fc60f1 100644 --- a/app/src/main/java/lightcontainer/protocol/rules/writer/RemoveFileErrorRule.java +++ b/app/src/main/java/lightcontainer/protocol/rules/writer/RemoveFileErrorRule.java @@ -2,10 +2,12 @@ package lightcontainer.protocol.rules.writer; import lightcontainer.protocol.ProtocolWriter; +import static lightcontainer.protocol.StandardizedDefinitions.FFE_REMOVE_ERROR; + public class RemoveFileErrorRule extends ProtocolWriter { //"^REMOVEFILE_ERROR\r\n$" - private static final String PATTERN = "^REMOVEFILE_ERROR\r\n$"; + private static final String PATTERN = FFE_REMOVE_ERROR; public static String NAME = "REMOVEFILE_ERROR"; diff --git a/app/src/main/resources/appdata.json b/app/src/main/resources/appdata.json index 51fa9da..09d21cd 100644 --- a/app/src/main/resources/appdata.json +++ b/app/src/main/resources/appdata.json @@ -1 +1,26 @@ -{"unicast_port":8000,"multicast_ip":"224.66.66.1","multicast_port":15502,"network_interface":"lo","tls":true,"storagePath":"C:\\Users\\ledou\\Documents\\ffe","users":[{"name":"aaaaa","password":"$2a$10$Up/pME2iFKALVSu8/JDpG.8Vc2vidOm99SeVoayCB1th7KHMZ1gq2","aes_key":"4+D3geivckhduP14646nYBb91N71HJj+8uvHFb0su0o=","files":[{"name":"test.txt","fileNameSalt":"FIjFt/hfscPkTLksP0IT4A==","size":301,"iv":"ATf85tYHY7WoGmyy3XRqyA==","storage":["lightcontainerSB01"]}]}]} \ No newline at end of file +{ + "unicast_port": 8000, + "multicast_ip": "224.66.66.1", + "multicast_port": 15502, + "network_interface": "lo", + "tls": true, + "storagePath": "C:\\Users\\ledou\\Documents\\ffe", + "users": [ + { + "name": "aaaaa", + "password": "$2a$10$Up/pME2iFKALVSu8/JDpG.8Vc2vidOm99SeVoayCB1th7KHMZ1gq2", + "aes_key": "4+D3geivckhduP14646nYBb91N71HJj+8uvHFb0su0o=", + "files": [ + { + "name": "test.txt", + "fileNameSalt": "FIjFt/hfscPkTLksP0IT4A==", + "size": 301, + "iv": "ATf85tYHY7WoGmyy3XRqyA==", + "storage": [ + "lightcontainerSB01" + ] + } + ] + } + ] +} \ No newline at end of file