Make hairpin mode default true in CNI

This commit is contained in:
Avi Deitcher authored and Bryan Boreham committed 2017-05-30 10:30:54 +00:00
1 parent 4c7c702b6d
commit d13c7ea7ee
1 file changed
+2 -1
+2 -1
View File
@@ -34,7 +34,8 @@ func NewCNIPlugin(weave *weaveapi.Client) *CNIPlugin {
func loadNetConf(bytes []byte) (*NetConf, error) { func loadNetConf(bytes []byte) (*NetConf, error) {
n := &NetConf{ n := &NetConf{
BrName: weavenet.WeaveBridgeName, BrName: weavenet.WeaveBridgeName,
HairpinMode: true,
} }
if err := json.Unmarshal(bytes, n); err != nil { if err := json.Unmarshal(bytes, n); err != nil {
return nil, fmt.Errorf("failed to load netconf: %v", err) return nil, fmt.Errorf("failed to load netconf: %v", err)