mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-25 20:51:52 +08:00
Expand i18n coverage
This commit is contained in:
@@ -231,7 +231,7 @@ func (emitter *Emitter) callListeners(listeners []reflect.Value, event interface
|
||||
argValue = argValue.Convert(expectedType)
|
||||
} else {
|
||||
// 打印错误信息,类型不匹配
|
||||
fmt.Printf("无法将参数 %v(类型 %v)转换为所需类型 %v\n", arguments[i], argValue.Type(), expectedType)
|
||||
fmt.Printf("failed to convert argument %v (type %v) to required type %v\n", arguments[i], argValue.Type(), expectedType)
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
@@ -251,7 +251,7 @@ func (g *Client) ProbeOSInfo(host, domain, user, pwd string, timeout int64, rdpP
|
||||
g.pdu.On("bitmap", func(rectangles []pdu.BitmapData) {
|
||||
})
|
||||
g.pdu.On("done", func() {
|
||||
glog.Debug("done信号触发")
|
||||
glog.Debug("done signal triggered")
|
||||
exitFlag <- true
|
||||
})
|
||||
|
||||
@@ -266,10 +266,10 @@ loop:
|
||||
case <-exitFlag:
|
||||
break loop
|
||||
case <-ctx.Done():
|
||||
glog.Debug("总超时已达到,退出")
|
||||
glog.Debug("total timeout reached, exiting")
|
||||
break loop
|
||||
}
|
||||
}
|
||||
glog.Debug("循环结束,总时间过去了:", time.Since(start))
|
||||
glog.Debug("loop ended, elapsed time: ", time.Since(start))
|
||||
return info
|
||||
}
|
||||
|
||||
@@ -473,7 +473,7 @@ func readDataPDU(r io.Reader) (*DataPDU, error) {
|
||||
d = &FontMapDataPDU{}
|
||||
|
||||
case PDUTYPE2_SAVE_SESSION_INFO:
|
||||
glog.Debug("SAVE_SESSION_INFO 事件触发,登录成功")
|
||||
glog.Debug("SAVE_SESSION_INFO event triggered, login successful")
|
||||
d = &SaveSessionInfo{}
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user