add the ability to skip creation of MASQUERADE rules via iptables when executing weave expose command
This commit is contained in:
1 parent
ad4e4238a5
commit
4b9c533b94
6 files changed
+42
-15
No files matched your search
+1
-1
@@ -513,7 +513,7 @@ func exposeForAWSVPC(alloc *ipam.Allocator, subnet address.CIDR, bridgeName stri
|
||||
addr, err := alloc.Allocate("weave:expose", subnet, false, func() bool { return false })
|
||||
checkFatal(err)
|
||||
cidr := address.MakeCIDR(subnet, addr)
|
||||
err = weavenet.Expose(bridgeName, cidr.IPNet(), true, false)
|
||||
err = weavenet.Expose(bridgeName, cidr.IPNet(), true, false, false)
|
||||
checkFatal(err)
|
||||
Log.Printf("Bridge %q exposed on address %v", bridgeName, cidr)
|
||||
ready()
|
||||
|
||||
Reference in new issue
Block a user