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:
committed by
Xiaokang Wang (Shelikhoo)
parent
c6b0433627
commit
36989386ec
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user