瀏覽代碼

fix buffer settings

Darien Raymond 7 年之前
父節點
當前提交
200ce404c6
共有 1 個文件被更改,包括 5 次插入0 次删除
  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.