Use domain name for message IDs

This commit is contained in:
M66B
2020-05-19 07:36:41 +02:00
parent 0aa7addb7a
commit 121236a5d6
2 changed files with 14 additions and 1 deletions

View File

@@ -187,7 +187,11 @@ public class EntityMessage implements Serializable {
public Long last_attempt; // send
static String generateMessageId() {
return "<" + UUID.randomUUID() + "@localhost" + '>';
return generateMessageId("localhost");
}
static String generateMessageId(String domain) {
return "<" + UUID.randomUUID() + "@" + domain + '>';
}
boolean replySelf(List<TupleIdentityEx> identities, long account) {