github.com/metacubex/mihomo@v1.18.5/component/dialer/bind_others.go (about) 1 //go:build !linux && !darwin && !windows 2 3 package dialer 4 5 import ( 6 "net" 7 "net/netip" 8 ) 9 10 func bindIfaceToDialer(ifaceName string, dialer *net.Dialer, network string, destination netip.Addr) error { 11 return fallbackBindIfaceToDialer(ifaceName, dialer, network, destination) 12 } 13 14 func bindIfaceToListenConfig(ifaceName string, lc *net.ListenConfig, network, address string, rAddrPort netip.AddrPort) (string, error) { 15 return fallbackBindIfaceToListenConfig(ifaceName, lc, network, address, rAddrPort) 16 } 17 18 func ParseNetwork(network string, addr netip.Addr) string { 19 return fallbackParseNetwork(network, addr) 20 }