1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 09:36:34 -05:00

fix a typo

This commit is contained in:
Darien Raymond 2018-09-17 11:57:56 +02:00
parent 20251bf499
commit 7f697661cd
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -208,7 +208,7 @@ func transferResponse(timer signal.ActivityUpdater, session *encoding.ServerSess
return nil
}
func isInecureEncryption(s protocol.SecurityType) bool {
func isInsecureEncryption(s protocol.SecurityType) bool {
return s == protocol.SecurityType_NONE || s == protocol.SecurityType_LEGACY || s == protocol.SecurityType_UNKNOWN
}
@ -236,7 +236,7 @@ func (h *Handler) Process(ctx context.Context, network net.Network, connection i
return err
}
if h.secure && isInecureEncryption(request.Security) {
if h.secure && isInsecureEncryption(request.Security) {
log.Record(&log.AccessMessage{
From: connection.RemoteAddr(),
To: "",