mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-03-31 10:27:39 +03:00
18 lines
293 B
Go
18 lines
293 B
Go
//go:build with_gvisor
|
|
|
|
package tun
|
|
|
|
import (
|
|
"time"
|
|
|
|
gLog "github.com/sagernet/gvisor/pkg/log"
|
|
)
|
|
|
|
func init() {
|
|
gLog.SetTarget((*nopEmitter)(nil))
|
|
}
|
|
|
|
type nopEmitter struct{}
|
|
|
|
func (n *nopEmitter) Emit(depth int, level gLog.Level, timestamp time.Time, format string, v ...interface{}) {
|
|
}
|