mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-06-02 22:03:39 -04:00
fix a typo
This commit is contained in:
parent
20251bf499
commit
7f697661cd
@ -208,7 +208,7 @@ func transferResponse(timer signal.ActivityUpdater, session *encoding.ServerSess
|
|||||||
return nil
|
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
|
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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if h.secure && isInecureEncryption(request.Security) {
|
if h.secure && isInsecureEncryption(request.Security) {
|
||||||
log.Record(&log.AccessMessage{
|
log.Record(&log.AccessMessage{
|
||||||
From: connection.RemoteAddr(),
|
From: connection.RemoteAddr(),
|
||||||
To: "",
|
To: "",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user