From e7344492595b26fd7ae21b945d1bdfe2ef115f10 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sun, 6 Jul 2025 00:51:33 +0300 Subject: Added terms of service (incomplete!!!!) to the server, and added authentication separation between API calls, actually authentication (nonce, and verification) is not implemented yet --- internal/packet/protocol.md | 1 + internal/packet/types.go | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/packet') diff --git a/internal/packet/protocol.md b/internal/packet/protocol.md index 6a50475..f013196 100644 --- a/internal/packet/protocol.md +++ b/internal/packet/protocol.md @@ -34,6 +34,7 @@ The first time a connection is established, the following packets are exchanged. - If the client sends any other type of packet, or the boolean is false, the server may close the connection After the handshake, the client may send any unauthenticated packets. +And the server may stream any additional packets. ### Authentication diff --git a/internal/packet/types.go b/internal/packet/types.go index 156fa5f..213e5ce 100644 --- a/internal/packet/types.go +++ b/internal/packet/types.go @@ -8,8 +8,7 @@ import ( ) type Error struct { - Error string - PktType PacketType + Error string } func (m *Error) Type() PacketType { -- cgit v1.3.1