Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions hcn/hcnpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,10 @@ type FiveTuple struct {

// L4WfpProxyPolicySetting sets Layer-4 Proxy on an endpoint.
type L4WfpProxyPolicySetting struct {
Port string `json:",omitempty"`
FilterTuple FiveTuple `json:",omitempty"`
UserSID string `json:",omitempty"`
InboundProxyPort string `json:",omitempty"`
OutboundProxyPort string `json:",omitempty"`
FilterTuple FiveTuple `json:",omitempty"`
UserSID string `json:",omitempty"`
}

// PortnameEndpointPolicySetting sets the port name for an endpoint.
Expand Down
3 changes: 2 additions & 1 deletion hcn/hcnutils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ func HcnCreateAcls() (*PolicyEndpointRequest, error) {

func HcnCreateWfpProxyPolicyRequest() (*PolicyEndpointRequest, error) {
policySetting := L4WfpProxyPolicySetting{
Port: "80",
InboundProxyPort: "80",
OutboundProxyPort: "80",
FilterTuple: FiveTuple{
Protocols: "6",
RemoteAddresses: "10.0.0.4",
Expand Down