mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-16 06:01:21 +08:00
28 lines
478 B
Go
28 lines
478 B
Go
|
//go:build !linux
|
||
|
// +build !linux
|
||
|
|
||
|
package dialer
|
||
|
|
||
|
import (
|
||
|
"net"
|
||
|
"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, _ net.IP) {
|
||
|
printMarkWarn()
|
||
|
}
|
||
|
|
||
|
func bindMarkToListenConfig(mark int, lc *net.ListenConfig, _, address string) {
|
||
|
printMarkWarn()
|
||
|
}
|