mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-06 17:26:58 +08:00
15 lines
210 B
Go
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))
|
|
})
|
|
}
|