Only conntrack tcp connections to reduce cpu load from xml marshalling.

This commit is contained in:
Tom Wilkie
2015-09-09 12:27:00 +00:00
parent b7c22b7a8f
commit d5570f27a7

View File

@@ -105,7 +105,7 @@ var ConntrackModulePresent = func() bool {
// NB this is not re-entrant!
func (c *Conntracker) run(args ...string) {
args = append([]string{"-E", "-o", "xml"}, args...)
args = append([]string{"-E", "-o", "xml", "-p", "tcp"}, args...)
cmd := exec.Command("conntrack", args...)
stdout, err := cmd.StdoutPipe()
if err != nil {