17 lines
309 B
Go
17 lines
309 B
Go
//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
|
|
}
|