Do not convert @ to \x00

This commit is contained in:
RPRX
2020-09-07 16:39:53 +08:00
committed by GitHub
parent f10f5b4a47
commit 16fe0b03f6
3 changed files with 3 additions and 10 deletions
+1 -5
View File
@@ -260,11 +260,7 @@ func (h *Handler) Process(ctx context.Context, network net.Network, connection i
}
return nil
}); err != nil {
dest := fb.Dest
if dest[0] == '\x00' {
dest = "@" + dest[1:]
}
return newError("failed to dial to " + dest).Base(err).AtWarning()
return newError("failed to dial to " + fb.Dest).Base(err).AtWarning()
}
defer conn.Close() // nolint: errcheck