Skip to content

Commit

Permalink
feat: remove sip ResolveSelfIP deprecated func
Browse files Browse the repository at this point in the history
  • Loading branch information
emiago committed Oct 29, 2024
1 parent 7e32504 commit 08224a3
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions sip/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,14 +253,6 @@ func findAnyUnescaped(text string, targets string, delims ...delimiter) int {
return -1
}

// ResolveSelfIP returns first non loopback IP
//
// Deprecated use ResolveInterfacesIP
func ResolveSelfIP() (net.IP, error) {
ip, _, err := ResolveInterfacesIP("ip4", nil)
return ip, err
}

// ResolveInterfaceIP will check current interfaces and resolve to IP
// Using targetIP it will try to match interface with same subnet
// network can be "ip" "ip4" "ip6"
Expand Down

0 comments on commit 08224a3

Please sign in to comment.