Use X25519 for XOR; Add "divide" (ECH, before and includes type 0); Change config format

https://github.com/XTLS/Xray-core/pull/4952#issuecomment-3207449672
This commit is contained in:
RPRX
2025-08-20 18:17:35 +00:00
committed by GitHub
parent 84835bec7d
commit 373558ed7a
16 changed files with 225 additions and 159 deletions

View File

@@ -18,7 +18,7 @@ func (a *Account) AsAccount() (protocol.Account, error) {
ID: protocol.NewID(id),
Flow: a.Flow, // needs parser here?
Encryption: a.Encryption, // needs parser here?
Xor: a.Xor,
XorMode: a.XorMode,
Minutes: a.Minutes,
}, nil
}
@@ -31,7 +31,7 @@ type MemoryAccount struct {
Flow string
Encryption string
Xor uint32
XorMode uint32
Minutes uint32
}
@@ -49,7 +49,7 @@ func (a *MemoryAccount) ToProto() proto.Message {
Id: a.ID.String(),
Flow: a.Flow,
Encryption: a.Encryption,
Xor: a.Xor,
XorMode: a.XorMode,
Minutes: a.Minutes,
}
}