clash/component/dialer/mark_nonlinux.go

23 lines
413 B
Go
Raw Normal View History

2021-11-08 16:59:48 +08:00
//go:build !linux
package dialer
import (
"net"
"sync"
"github.com/Dreamacro/clash/log"
)
2023-08-13 21:44:16 +08:00
var printMarkWarn = sync.OnceFunc(func() {
log.Warnln("Routing mark on socket is not supported on current platform")
})
2021-11-08 16:59:48 +08:00
func bindMarkToDialer(mark int, dialer *net.Dialer, _ string, _ net.IP) {
printMarkWarn()
}
func bindMarkToListenConfig(mark int, lc *net.ListenConfig, _, address string) {
printMarkWarn()
}