Skip to content

Commit

Permalink
Merge pull request #910 from elweb9858/l4wfpproxy_portupdate
Browse files Browse the repository at this point in the history
Updating L4WfpProxyPolicy struct
  • Loading branch information
dcantah authored Dec 15, 2020
2 parents d7fea37 + 410f893 commit e8a2e45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
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

0 comments on commit e8a2e45

Please sign in to comment.