Skip to content

Commit

Permalink
fix(zones): correctly display log field (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsanchietti authored Oct 7, 2024
1 parent c4673b2 commit e36b933
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stores/standalone/firewall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ interface ZoneResponse {
forward?: string
output?: string
family?: string
log?: number
log?: string
log_limit?: string
device?: Array<string>
subnet?: Array<string>
Expand Down Expand Up @@ -181,7 +181,7 @@ export class Zone {
this.output = Zone.trafficPolicyParser(zoneResponse.output ?? 'DROP')
this.forward = Zone.trafficPolicyParser(zoneResponse.forward ?? 'DROP')
this.interfaces = zoneResponse.network ?? []
this.logging = Boolean(zoneResponse.log ?? 0)
this.logging = zoneResponse.log === '1'
}

public type(): ZoneType {
Expand Down

0 comments on commit e36b933

Please sign in to comment.