- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for FlagLoopback (0.15 sec)
-
src/vendor/golang.org/x/net/nettest/nettest.go
// for loopback test. func LoopbackInterface() (*net.Interface, error) { ift, err := net.Interfaces() if err != nil { return nil, errNoAvailableInterface } for _, ifi := range ift { if ifi.Flags&net.FlagLoopback != 0 && ifi.Flags&net.FlagUp != 0 { return &ifi, nil } } return nil, errNoAvailableInterface } // RoutedInterface returns a network interface that can route IP // traffic and satisfies flags.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 8.5K bytes - Viewed (0)