Skip to content

Commit

Permalink
feat: add option to override destination of access log (jsonv4)
Browse files Browse the repository at this point in the history
  • Loading branch information
mydogshitgold committed Feb 8, 2023
1 parent 2821703 commit 5837b3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions infra/conf/v4/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ type SystemPolicy struct {
StatsInboundDownlink bool `json:"statsInboundDownlink"`
StatsOutboundUplink bool `json:"statsOutboundUplink"`
StatsOutboundDownlink bool `json:"statsOutboundDownlink"`
OverrideAccessLogDest bool `json:"overrideAccessLogDest"`
}

func (p *SystemPolicy) Build() (*policy.SystemPolicy, error) {
Expand All @@ -65,6 +66,7 @@ func (p *SystemPolicy) Build() (*policy.SystemPolicy, error) {
OutboundUplink: p.StatsOutboundUplink,
OutboundDownlink: p.StatsOutboundDownlink,
},
OverrideAccessLogDest: p.OverrideAccessLogDest,
}, nil
}

Expand Down

0 comments on commit 5837b3b

Please sign in to comment.