✏️ nwife 防注入

This commit is contained in:
fumiama
2021-12-06 19:33:47 +08:00
parent 1d9813691c
commit b20cb1c0a0
3 changed files with 11 additions and 10 deletions

View File

@@ -60,7 +60,7 @@ type request struct {
// InitGui 初始化gui
func InitGui(addr string) {
// 将日志重定向到前端hook
writer := io.MultiWriter(l, os.Stderr)
writer := io.MultiWriter(l, os.Stdout)
log.SetOutput(writer)
// 监听后端
go controller(addr)