mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-13 21:07:02 -05:00
fix buffer settings
This commit is contained in:
parent
8c08ca52eb
commit
200ce404c6
@ -53,6 +53,11 @@ func (p *Policy) overrideWith(another *Policy) {
|
|||||||
p.Stats = new(Policy_Stats)
|
p.Stats = new(Policy_Stats)
|
||||||
*p.Stats = *another.Stats
|
*p.Stats = *another.Stats
|
||||||
}
|
}
|
||||||
|
if another.Buffer != nil {
|
||||||
|
p.Buffer = &Policy_Buffer{
|
||||||
|
Connection: another.Buffer.Connection,
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ToCorePolicy converts this Policy to core.Policy.
|
// ToCorePolicy converts this Policy to core.Policy.
|
||||||
|
Loading…
Reference in New Issue
Block a user