mihomo/component/dialer/bind_others.go

21 lines
608 B
Go
Raw Normal View History

2023-02-13 10:14:59 +08:00
//go:build !linux && !darwin && !windows
package dialer
import (
"net"
2022-04-20 01:52:51 +08:00
"net/netip"
)
2022-04-20 01:52:51 +08:00
func bindIfaceToDialer(ifaceName string, dialer *net.Dialer, network string, destination netip.Addr) error {
2023-10-26 10:27:38 +08:00
return fallbackBindIfaceToDialer(ifaceName, dialer, network, destination)
}
func bindIfaceToListenConfig(ifaceName string, lc *net.ListenConfig, network, address string, rAddrPort netip.AddrPort) (string, error) {
return fallbackBindIfaceToListenConfig(ifaceName, lc, network, address, rAddrPort)
}
2023-02-13 10:14:59 +08:00
func ParseNetwork(network string, addr netip.Addr) string {
2023-10-26 10:27:38 +08:00
return fallbackParseNetwork(network, addr)
2023-02-13 10:14:59 +08:00
}