github.com/igoogolx/clash@v1.19.8/component/dialer/mark_nonlinux.go (about) 1 //go:build !linux 2 3 package dialer 4 5 import ( 6 "net" 7 "sync" 8 9 "github.com/igoogolx/clash/log" 10 ) 11 12 var printMarkWarn = sync.OnceFunc(func() { 13 log.Warnln("Routing mark on socket is not supported on current platform") 14 }) 15 16 func bindMarkToDialer(mark int, dialer *net.Dialer, _ string, _ net.IP) { 17 printMarkWarn() 18 } 19 20 func bindMarkToListenConfig(mark int, lc *net.ListenConfig, _, address string) { 21 printMarkWarn() 22 }