primeiro commit
This commit is contained in:
16
internal/probe/route_other.go
Normal file
16
internal/probe/route_other.go
Normal file
@@ -0,0 +1,16 @@
|
||||
//go:build !linux
|
||||
|
||||
package probe
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net"
|
||||
)
|
||||
|
||||
// GatewayForInterface returns the default IPv4 gateway for an interface.
|
||||
func GatewayForInterface(ctx context.Context, iface string) (net.IP, error) {
|
||||
if err := ctx.Err(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, errUnsupportedGateway
|
||||
}
|
||||
Reference in New Issue
Block a user