498 Commits

Author SHA1 Message Date
orignal 3522a3180b implement PING command 2025-08-31 17:50:02 -04:00
orignal 938a698904 don't create unique loopback address for ::1 if not set explicitly 2025-08-27 18:33:46 -04:00
orignal 310ee78d24 create unique loopback address for ipv6 2025-08-26 21:16:15 -04:00
orignal a2073a8751 lookup LeaseSet before sending ping 2025-08-26 14:50:34 -04:00
orignal ad390f70b3 enable PQ encryption type by default if supported 2025-08-21 21:13:13 -04:00
orignal 51b58c952a pass string_view instead const char *. EdDSA signature be default 2025-08-20 21:29:36 -04:00
Dimitris Apostolou b00001752b fix typos 2025-08-20 17:49:45 +03:00
orignal 39069e0bd6 BOB ping command 2025-08-19 15:21:44 -04:00
orignal 83f9e1098d decline master session if SAM version is less than 3.3 2025-08-14 15:58:42 -04:00
orignal 7dd174d32c extract and check VERSION 2025-08-14 15:44:48 -04:00
orignal d496b15249 handle SESSION ADD without FROM_PORT 2025-08-13 17:16:56 -04:00
orignal f5b57283b3 i2p.streaming.dontSign tunnel param 2025-08-05 19:21:07 -04:00
orignal aeca4c3fc7 fixed #2215. Check streaming destination during cleanup 2025-08-03 16:34:31 -04:00
orignal b6f5308242 used enum class for SAMSocketType and SAMSessionType 2025-08-02 11:31:26 -04:00
orignal 6b9232452d i2p.streaming.maxWindowSize param 2025-07-31 19:30:41 -04:00
orignal 44b4fccefe non-blocking UDP sockets 2025-07-29 18:37:44 -04:00
orignal 977967f793 try to resolve host again in server tunnel if failed before 2025-07-28 15:51:47 -04:00
orignal d5769080c8 handle session with STYLE=DATAGRAM2 and STYLE=DATAGRAM3 2025-07-23 12:54:46 -04:00
orignal c554f47c4d datagramversion param for UDP client tunnel 2025-07-22 16:07:24 -04:00
orignal 49569d36e5 calculate message size properly 2025-07-21 12:51:40 -04:00
orignal 8c204a4c10 use std::string_view for I2P HTTP headers. constexpr for ecxluded headers list 2025-07-18 22:39:21 -04:00
orignal 3a18e7ab91 handle multiple ECIESx25519 encryption keys 2025-07-16 22:05:42 -04:00
orignal ccb466646f don't create PQ signature if not supported 2025-07-08 14:32:37 -04:00
orignal 99e4bda685 pass actual string size to Process* methods 2025-07-08 13:18:54 -04:00
orignal 181edce55a pass buffer as std::string_stream 2025-07-06 18:47:52 -04:00
orignal 1862f28a98 extract params from std::string_view 2025-07-06 16:45:47 -04:00
orignal 88375bf9c0 fixed build for older gcc 2025-07-05 21:41:35 -04:00
orignal 59d1695ee5 use std::string_view to extract params 2025-07-05 21:06:49 -04:00
orignal f230c110aa send actual version in SetDate 2025-06-30 15:49:42 -04:00
orignal 0445a5d775 send actual version in SetDate 2025-06-30 15:47:19 -04:00
orignal 78357c23d2 don't verify signature in incoming SYN packet if came from ECIESx25519 session. Compare static key instead 2025-06-18 20:39:48 -04:00
nobs2p 1b068618ba Add settunneltype parameter to BOB API for i2pd to configure proxy tunnel type
This update introduces the settunneltype <socks|httpproxy> command to the BOB API, allowing users to specify the tunnel type as either SOCKS or HTTP proxy. When the tunnel type is set, the corresponding proxy service is automatically started. This enhances flexibility in tunnel configuration through the BOB interface.

Signed-off-by: nobs2p <nobs2p@i2pmail.org>
2025-05-29 12:35:10 +03:00
nobs2p d440b5bf09 Fix FORWARD session host handling in SAM; refactor SAMSocket::ProcessStreamForward
- Fixed validation of HOST and PORT parameters for FORWARD sessions:
  - Improved IP address parsing with fallback to 127.0.0.1 if invalid
- Added checks for required parameters (ID, HOST, PORT)
- General cleanup and refactoring for improved readability and stability

Signed-off-by: nobs2p <nobs2p@i2pmail.org>
2025-05-20 00:07:56 +03:00
orignal 246bc43dea read more data from socket if available and stream buffer is not full 2025-05-07 18:54:55 -04:00
orignal aece5bb16c don't exceed stream max send buffer size 2025-05-03 08:47:49 -04:00
orignal 539cd5a656 max i2p stream buffer size 2025-05-02 13:36:59 -04:00
orignal 0cbada2196 correct receive buffer size 2025-05-02 13:23:53 -04:00
orignal d9f64c6f51 connection max stream buffer size 2025-05-01 18:09:39 -04:00
orignal b03ec650ef keep receving new data from socket while previous is being sent to stream 2025-04-29 12:56:35 -04:00
orignal 9d44a32e4c fixed #2183. Give more time to close streams after session disconnect if needed 2025-04-24 16:37:50 -04:00
orignal bbfe81cb79 handle any incoming post quantum crypto type 2025-04-17 22:15:17 -04:00
orignal bce0ccf161 all ratchets types are eligible for ECIESx25519 2025-04-04 19:52:32 -04:00
orignal 3be4c7217f move buffer when insert to buffer queue. clean entire queue in one call 2025-04-03 18:42:34 -04:00
orignal 41197264c6 fixed warning 2025-03-22 15:42:22 -04:00
orignal 029e279b48 fixed typo 2025-03-22 12:30:51 -04:00
orignal 9fdbb14075 calculate preferred crypto based i2cp.leaseSetEncType 2025-03-20 18:56:10 -04:00
orignal bd2b96627c calculate crypto key length from key type 2025-03-18 19:23:13 -04:00
orignal 8e6b9370d0 use ToBase64 for incoming stream accept 2025-03-17 19:00:48 -04:00
orignal c2f6731296 don't use fixed size buffer for local destination's keys 2025-03-16 18:06:12 -04:00
orignal d93a80cd2b Support v1 datagram sessions without port 2025-03-16 11:07:17 -04:00