mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-17 17:48:40 +00:00
Populate Seed (more TBD) and checks
This commit is contained in:
parent
83c76ec192
commit
d09290c5d4
8 changed files with 139 additions and 58 deletions
|
@ -458,6 +458,10 @@ func (h *Handler) Process(ctx context.Context, network net.Network, connection s
|
|||
responseAddons := &encoding.Addons{
|
||||
// Flow: requestAddons.Flow,
|
||||
}
|
||||
encoding.PopulateSeed(account.Seed, responseAddons)
|
||||
if check := encoding.CheckSeed(requestAddons, responseAddons); check != nil {
|
||||
return errors.New("Seed configuration mis-match").Base(check).AtWarning()
|
||||
}
|
||||
|
||||
var input *bytes.Reader
|
||||
var rawInput *bytes.Buffer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue