mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
12 lines
278 B
Go
12 lines
278 B
Go
package definitions
|
|
|
|
import "fmt"
|
|
|
|
type Match struct {
|
|
TCPDestinationPort uint64 `json:"tcp_destination_port,omitempty"`
|
|
Service []string `json:"service,omitempty"`
|
|
}
|
|
|
|
func (m Match) Nftables() string {
|
|
return fmt.Sprintf("tcp dport %d", m.TCPDestinationPort)
|
|
}
|