diff --git a/api/firewall/addresses.go b/api/firewall/addresses.go new file mode 100644 index 0000000..fea374a --- /dev/null +++ b/api/firewall/addresses.go @@ -0,0 +1,20 @@ +package firewall + +import ( + "context" + + "nfsense.net/nfsense/pkg/definitions" +) + +type GetAddressesParameters struct { +} + +type GetAddressesResult struct { + Addresses map[string]definitions.Address +} + +func (f *Firewall) GetAddresses(ctx context.Context, params GetForwardRulesParameters) (GetAddressesResult, error) { + return GetAddressesResult{ + Addresses: f.Conf.Firewall.Addresses, + }, nil +}