1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-11 04:36:37 -05:00

fix buffer settings

This commit is contained in:
Darien Raymond 2018-07-31 16:46:37 +02:00
parent 8c08ca52eb
commit 200ce404c6
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -53,6 +53,11 @@ func (p *Policy) overrideWith(another *Policy) {
p.Stats = new(Policy_Stats)
*p.Stats = *another.Stats
}
if another.Buffer != nil {
p.Buffer = &Policy_Buffer{
Connection: another.Buffer.Connection,
}
}
}
// ToCorePolicy converts this Policy to core.Policy.