test-base-64 was not updated after the following commits:
93cc810f29bbf5c1655a
This leads to errors like:
In file included from /usr/include/c++/15.1.1/cassert:46,
from /build/i2pd/src/i2pd-2.57.0/tests/test-base-64.cpp:1:
/build/i2pd/src/i2pd-2.57.0/tests/test-base-64.cpp: In function ‘int main()’:
/build/i2pd/src/i2pd-2.57.0/tests/test-base-64.cpp:14:28: error: too many arguments to function ‘std::string i2p::data::ByteStreamToBase64(const uint8_t*, size_t)’
14 | assert(ByteStreamToBase64(NULL, 0, NULL, 0) == 0);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
and:
In file included from /build/i2pd/src/i2pd-2.57.0/tests/test-base-64.cpp:4:
/build/i2pd/src/i2pd-2.57.0/build/../libi2pd/Base.h:21:21: note: declared here
21 | std::string ByteStreamToBase64 (const uint8_t * InBuffer, size_t InCount);
| ^~~~~~~~~~~~~~~~~~
/build/i2pd/src/i2pd-2.57.0/tests/test-base-64.cpp:14:47: error: no match for ‘operator==’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘int’)
14 | assert(ByteStreamToBase64(NULL, 0, NULL, 0) == 0);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~
| | |
| | int
| std::string {aka std::__cxx11::basic_string<char>}
among others.
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>
- 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>