]> Sergey Matveev's repositories - vors.git/commitdiff
Ordinary packets can also be same length as cookie v2.1.0
authorSergey Matveev <stargrave@stargrave.org>
Tue, 16 Apr 2024 12:35:25 +0000 (15:35 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 16 Apr 2024 12:35:25 +0000 (15:35 +0300)
cmd/server/main.go

index 300ce5af17bc87a4264f3fa3380403351656943108b7b9d993042c6628d27b7a..4b069743ca62542e855f616d262c09c1e432527cf973d0a8e4f5df81d090fc26 100644 (file)
@@ -396,10 +396,8 @@ func main() {
                                if c, ok := Cookies[cookie]; ok {
                                        c <- from
                                        close(c)
-                               } else {
-                                       slog.Info("unknown cookie", "cookie", cookie)
+                                       continue
                                }
-                               continue
                        }
 
                        sid = buf[0]