1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-27 12:35:21 -05:00

test case for policy

This commit is contained in:
Darien Raymond
2018-02-17 23:37:09 +01:00
parent baeef07abb
commit 39cfc982b5
4 changed files with 43 additions and 28 deletions

View File

@@ -43,7 +43,7 @@ type Policy struct {
// OverrideWith overrides the current Policy with another one. All values with default value will be overridden.
func (p Policy) OverrideWith(another Policy) Policy {
p.Timeouts.OverrideWith(another.Timeouts)
p.Timeouts = p.Timeouts.OverrideWith(another.Timeouts)
return p
}