From 819eddb23942a160f723000090fdafaddc1b07e6 Mon Sep 17 00:00:00 2001 From: Richard Patel Date: Fri, 2 Sep 2022 03:57:08 +0200 Subject: [PATCH] nftables: go fmt --- pkg/nftables/nftables.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkg/nftables/nftables.go b/pkg/nftables/nftables.go index 83b3cb5..65e7fa9 100644 --- a/pkg/nftables/nftables.go +++ b/pkg/nftables/nftables.go @@ -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()