Change net.IP to netip.Addr

This commit is contained in:
Zoltán Papp
2025-01-24 15:03:38 +01:00
parent 4ad5c55795
commit 00b8f6ad8e
2 changed files with 11 additions and 6 deletions

View File

@@ -2,14 +2,14 @@ package manager
import (
"fmt"
"net"
"net/netip"
)
// ForwardRule todo figure out better place to this to avoid circular imports
type ForwardRule struct {
Protocol Protocol
DestinationPort Port
TranslatedAddress net.IP
TranslatedAddress netip.Addr
TranslatedPort Port
}