More omitempty
This commit is contained in:
@@ -21,8 +21,8 @@ type FirewallDestination struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type FirewallSource struct {
|
type FirewallSource struct {
|
||||||
ClientMacs []string `json:"client_macs"`
|
ClientMacs []string `json:"client_macs,omitempty"`
|
||||||
IPs []string `json:"ips"`
|
IPs []string `json:"ips,omitempty"`
|
||||||
MatchMac bool `json:"match_mac"`
|
MatchMac bool `json:"match_mac"`
|
||||||
MatchOppositeIPs bool `json:"match_opposite_ips"`
|
MatchOppositeIPs bool `json:"match_opposite_ips"`
|
||||||
MatchOppositeNetworks bool `json:"match_opposite_networks"`
|
MatchOppositeNetworks bool `json:"match_opposite_networks"`
|
||||||
|
|||||||
Reference in New Issue
Block a user