mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 19:08:20 +00:00
17 lines
414 B
Go
17 lines
414 B
Go
package firewall
|
|
|
|
import (
|
|
"context"
|
|
|
|
"nfsense.net/nfsense/internal/definitions"
|
|
)
|
|
|
|
type GetDestinationNATRulesResult struct {
|
|
DestinationNATRules []definitions.DestinationNATRule
|
|
}
|
|
|
|
func (f *Firewall) GetDestinationNATRules(ctx context.Context, params struct{}) (GetDestinationNATRulesResult, error) {
|
|
return GetDestinationNATRulesResult{
|
|
DestinationNATRules: f.Conf.Firewall.DestinationNATRules,
|
|
}, nil
|
|
}
|