Improve: with gvisor internal log

This commit is contained in:
xjasonlyu
2023-03-27 13:21:10 +08:00
parent 66860d3de8
commit 7327f2c784
4 changed files with 9 additions and 19 deletions

View File

@@ -2,7 +2,6 @@ package engine
import (
"errors"
"fmt"
"net"
"sync"
"time"
@@ -192,10 +191,7 @@ func netstack(k *Key) (err error) {
if _defaultStack, err = core.CreateStack(&core.Config{
LinkEndpoint: _defaultDevice,
TransportHandler: &mirror.Tunnel{},
PrintFunc: func(format string, v ...any) {
log.Warnf("[STACK] %s", fmt.Sprintf(format, v...))
},
Options: opts,
Options: opts,
}); err != nil {
return
}