summaryrefslogtreecommitdiff
path: root/internal/packet
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-07-06 00:51:33 +0300
committerKyren223 <Kyren223@proton.me>2025-07-06 00:51:33 +0300
commite7344492595b26fd7ae21b945d1bdfe2ef115f10 (patch)
treed15598991805ef530be5332cf43f6ea629f7adaf /internal/packet
parent8f8736d09efce46147ff37d4840fb424aa6cb7e4 (diff)
Added terms of service (incomplete!!!!) to the server, and added
authentication separation between API calls, actually authentication (nonce, and verification) is not implemented yet
Diffstat (limited to 'internal/packet')
-rw-r--r--internal/packet/protocol.md1
-rw-r--r--internal/packet/types.go3
2 files changed, 2 insertions, 2 deletions
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 {