feat(perfectprivacy): port forwarding support (#2378)

This commit is contained in:
Quentin McGaw
2024-07-30 22:00:26 +02:00
committed by GitHub
parent ab08a5e666
commit 7bc2972b27
11 changed files with 96 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ func ipMatchesFamily(ip netip.Addr, family int) bool {
(family == netlink.FamilyV6 && ip.Is6())
}
func (r *Routing) assignedIP(interfaceName string, family int) (ip netip.Addr, err error) {
func (r *Routing) AssignedIP(interfaceName string, family int) (ip netip.Addr, err error) {
iface, err := net.InterfaceByName(interfaceName)
if err != nil {
return ip, fmt.Errorf("network interface %s not found: %w", interfaceName, err)