Skip to content

Commit

Permalink
Fixes client.enabled: false, when field is not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
concentrator authored and KNechaevWallarm committed Nov 29, 2024
1 parent d6cb1ba commit 5b049f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type (

// ClientFields defines fields which are subject to update.
ClientFields struct {
Enabled bool `json:"enabled"`
Enabled bool `json:"enabled,omitempty"`
ScannerMode string `json:"scanner_mode,omitempty"`
AttackRecheckerMode string `json:"attack_rechecker_mode,omitempty"`
}
Expand Down

0 comments on commit 5b049f4

Please sign in to comment.