mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-02 18:14:01 +00:00
27 lines
472 B
Go
27 lines
472 B
Go
//go:build !linux
|
|
|
|
package dialer
|
|
|
|
import (
|
|
"net"
|
|
"net/netip"
|
|
"sync"
|
|
|
|
"github.com/Dreamacro/clash/log"
|
|
)
|
|
|
|
var printMarkWarnOnce sync.Once
|
|
|
|
func printMarkWarn() {
|
|
printMarkWarnOnce.Do(func() {
|
|
log.Warnln("Routing mark on socket is not supported on current platform")
|
|
})
|
|
}
|
|
|
|
func bindMarkToDialer(mark int, dialer *net.Dialer, _ string, _ netip.Addr) {
|
|
printMarkWarn()
|
|
}
|
|
|
|
func bindMarkToListenConfig(mark int, lc *net.ListenConfig, _, _ string) {
|
|
printMarkWarn()
|
|
}
|