Files
tun2socks/component/dialer/fwmark.go
2021-02-10 15:46:55 +08:00

15 lines
210 B
Go

package dialer
import (
"sync"
)
var _setOnce sync.Once
// SetMark sets the mark for each packet sent through this dialer(socket).
func SetMark(i int) {
_setOnce.Do(func() {
addControl(setMark(i))
})
}