Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mingyech committed Oct 21, 2024
1 parent c5332bd commit efee066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/transports/wrapping/prefix/prefix.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func (t Transport) WrapConnection(data *bytes.Buffer, c net.Conn, originalDst ne
func (t Transport) getReg(obfuscatedID []byte, rm transports.RegManager, originalDst net.IP) (transports.Registration, error) {
for _, privkey := range t.Privkeys {
hmacID, err := t.TagObfuscator.TryReveal(obfuscatedID, privkey)
if err != nil || hmacID != nil {
if err != nil || hmacID == nil {
continue
}
if reg, ok := rm.GetRegistrations(originalDst)[string(hmacID)]; ok {
Expand Down

0 comments on commit efee066

Please sign in to comment.