diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2023-07-14 15:17:43 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2023-10-05 14:11:13 +0200 |
commit | 5c8e15c451ec870b9dd4eb843ec6ca3ba64cda4f (patch) | |
tree | 8417ca19e5bc1336e2c6dcddb5ff92da972fcea5 /src/chain.h | |
parent | 762404a68c114e8831cdfae937627174544b55a7 (diff) |
i2p: destroy the session if we get an unexpected error from the I2P router
From https://geti2p.net/en/docs/api/samv3:
If SILENT=false was passed, which is the default value, the SAM bridge
sends the client a ASCII line containing the base64 public destination
key of the requesting peer
So, `Accept()` is supposed to receive a Base64 encoded destination of
the connecting peer, but if it receives something like this instead:
STREAM STATUS RESULT=I2P_ERROR MESSAGE="Session was closed"
then destroy the session.
Diffstat (limited to 'src/chain.h')
0 files changed, 0 insertions, 0 deletions