2023-02-13 10:14:59 +08:00
|
|
|
//go:build !linux && !darwin && !windows
|
2020-10-22 00:11:49 +08:00
|
|
|
|
|
|
|
package dialer
|
|
|
|
|
2021-09-06 23:07:34 +08:00
|
|
|
import (
|
|
|
|
"net"
|
2022-04-20 01:52:51 +08:00
|
|
|
"net/netip"
|
2021-09-06 23:07:34 +08:00
|
|
|
)
|
|
|
|
|
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)
|
2021-09-06 23:07:34 +08:00
|
|
|
}
|
|
|
|
|
2024-04-10 15:34:28 +08:00
|
|
|
func bindIfaceToListenConfig(ifaceName string, lc *net.ListenConfig, network, address string, rAddrPort netip.AddrPort) (string, error) {
|
|
|
|
return fallbackBindIfaceToListenConfig(ifaceName, lc, network, address, rAddrPort)
|
2020-10-22 00:11:49 +08:00
|
|
|
}
|
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
|
|
|
}
|