mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-09 20:29:23 +02:00
chore(netlink): debug log ip rule commands in netlink instead of routing package
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package netlink
|
||||
|
||||
import "net/netip"
|
||||
|
||||
func makeNetipPrefix(n byte) netip.Prefix {
|
||||
const bits = 24
|
||||
return netip.PrefixFrom(netip.AddrFrom4([4]byte{n, n, n, 0}), bits)
|
||||
}
|
||||
Reference in New Issue
Block a user