1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-11-23 12:02:58 -05:00

tlsmirror-bootstrap apply coding style

This commit is contained in:
Shelikhoo
2025-10-16 00:49:41 +01:00
committed by Xiaokang Wang (Shelikhoo)
parent c6b0433627
commit 36989386ec

View File

@@ -264,7 +264,7 @@ func (d *persistentMirrorTLSDialer) handleIncomingReadyConnection(conn internet.
func (d *persistentMirrorTLSDialer) Dial(ctx context.Context,
dest net.Destination, settings *internet.MemoryStreamConfig,
) (internet.Connection, error) {
if d.enrollmentServerIdentifier != nil && len(d.enrollmentServerIdentifier) > 0 {
if len(d.enrollmentServerIdentifier) > 0 {
if mirrorcommon.IsLoopbackProtectionEnabled(ctx, d.enrollmentServerIdentifier) {
return nil, newError("loopback protection: refusing to dial to self")
}