nftables: go fmt

This commit is contained in:
Richard Patel 2022-09-02 03:57:08 +02:00
parent ae44b84bc5
commit 819eddb239
1 changed files with 6 additions and 7 deletions

View File

@ -44,13 +44,12 @@ func ifname(n string) []byte {
//
// Generates a chain that looks like this:
//
// table ip filter {
// chain tpuproxy {
// type filter hook prerouting priority -2147483648; policy accept;
// iifname "enp6s0" udp dport { 8003, 8004, 8005 } tproxy to :51211
// }
// }
//
// table ip filter {
// chain tpuproxy {
// type filter hook prerouting priority -2147483648; policy accept;
// iifname "enp6s0" udp dport { 8003, 8004, 8005 } tproxy to :51211
// }
// }
func InsertProxyChain(destPorts []uint16, redirectPort uint16, iface string) error {
c := getNFTConn()