tlsmirror-bootstrap apply coding style

This commit is contained in:
Shelikhoo
2025-11-10 12:33:16 +00:00
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")
}