Browse Source

fix buffer settings

Darien Raymond 7 years ago
parent
commit
200ce404c6
1 changed files with 5 additions and 0 deletions
  1. 5 0
      app/policy/config.go

+ 5 - 0
app/policy/config.go

@@ -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.