commit 99a212ba50a556056360e1a95204bd5ae90bc8da
parent be5f05742816b9f9f144d2ea62cce1811911bcfb
Author: bain <bain@bain.cz>
Date: Sat, 27 Nov 2021 18:07:07 +0100
fix another error in README
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/README b/README
@@ -9,13 +9,13 @@ saying he should authenticate. It then proceeds to ignore the
user to limit the resource usage.
A socket is open on a port specified in goauth.properties
-(default 8001). This socket communicates with this protocol:
+(default 8001). The socket communicates with this protocol:
client> send 4 bytes (int) indicating the payload size
server> 0x00 if size is small enough, 0x01 if not
client> sends 12 byte nonce for ChaCha20-Poly1305 encryption
client> sends $size bytes of encrypted payload with pre-set key
- ex. 1: {"type": "add", "username": "bain"}
- ex. 2: {"type": "remove", "username": "bain"}
+ ex. 1: [{"type": "add", "username": "bain"}]
+ ex. 2: [{"type": "remove", "username": "bain"}]
server> 0x01 if the payload is invalid, 0x00 if the transaction
was successful