mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-09-19 23:22:31 +00:00
19 lines
483 B
Go
19 lines
483 B
Go
//go:build !darwin && !linux && !windows
|
|
|
|
package commons
|
|
|
|
import (
|
|
"fmt"
|
|
"net/netip"
|
|
"runtime"
|
|
|
|
"github.com/Dreamacro/clash/listener/tun/device"
|
|
)
|
|
|
|
func GetAutoDetectInterface() (string, error) {
|
|
return "", fmt.Errorf("can not auto detect interface-name on this OS: %s, you must be detecting interface-name by manual", runtime.GOOS)
|
|
}
|
|
|
|
func ConfigInterfaceAddress(device.Device, netip.Prefix, int, bool) error {
|
|
return fmt.Errorf("unsupported on this OS: %s", runtime.GOOS)
|
|
}
|