21 Commits

Author SHA1 Message Date
b2e54236d7 fix up go module 2024-11-13 14:39:08 -05:00
7b1b6d431a Fix up import paths 2024-11-09 11:54:18 -05:00
900f5393ad update versions 2023-07-21 15:01:50 -04:00
idk
25eb54b2bc remove reliance on real sam3 library for compatibility, same pattern is available in goSam now, but the better solution long-term is to move i2pkeys out of sam3 since it no longer requires a real SAM connection for anything 2022-03-09 17:46:44 -05:00
idk
a2fcfb8bc1 Fix issue where the control socket should not be used as a streamsession 2022-02-02 00:40:01 -05:00
idk
23c45022b3 tests should run in debug mode. Don't attempt to hot-restore SAM sessions by replacing the net.Conn parts inside if they go down, just let it die and tell the user to restart. 2022-02-01 20:03:13 -05:00
idk
e278de3a66 Fix a bunch of errors that could potentially happen because of changes I made to the Dialer 2021-04-15 17:21:41 -04:00
idk
3c5397e87f Fix session ID issue, we only need a new session when we really need a new session, i.e. give people a way to ask for it instead of trying to guess 2020-11-22 12:31:20 -05:00
idk
12d1bf38b2 re-write some tests 2020-11-12 22:41:05 -05:00
idk
a516752491 add resolve function compatible with SOCKS proxies 2020-09-13 01:32:22 -04:00
13bf63f35a test: make sure to check the returned error from destination creation 2020-08-30 17:59:30 -07:00
91fc13b151 enable creating I2P destinations 2020-08-30 17:56:05 -07:00
idk
291b43dd4b it can't have a destination until one is filled 2019-07-03 22:09:29 -04:00
idk
88c615b411 only run offline tests by default 2019-02-28 20:32:28 -05:00
idk
702cc4d699 Configurable host:port (#7)
* replyParser had a bug where, when a base64 address ended with '==', the key-value pairs would break. I worked around the issue by switching '==' it with a non-base64 character before the split, and back after.

* switch to strings.SplitN and apply gofmt, add test

* I don't know exactly why, but checking that the kvPair in replyParser.go is not nil fixes the crash on image-heavy sites.

* added new configuration options for host, port, address, and debugging

* Fix commit history

* added tunnel length control features

* added tunnel length control defaults

* added length variance feature

* added tunnel quantity option

* added backup tunnel quantity option

* added leaseset configuration options

* gofmt

* add new options to session establishment commands & gofmt

* Reference the change to the debug global in the httpTest.go example

* Switch to less than or equal to 16 tunnels at a time.

* add in the comments I forgot to do.

* add in the comments I forgot to do.

* Improved formatting with linter.

* Improved formatting with linter.

* Ditch interfaces in the functional arguments, instead use different functions for the string and int-based variations.

* Fixed broken option

* added in missing formatting directive.

* change addr to host in client so names are consistent.

* change TestClientLookupInvalid back.
2018-07-16 08:49:03 +02:00
622c39b6a5 spring cleaning 2015-03-25 22:03:05 +01:00
6b9621e160 cleaned up debug logging 2015-03-25 21:37:41 +01:00
8badb1ef70 small cleanup after playing with i2pd in c++ 2014-10-31 10:52:33 +01:00
9de2fd3f5b Always send Hello on NewClient 2014-02-11 13:10:24 +01:00
a534c1afaa NewClient now opens the TCP socket itself 2014-02-10 19:27:24 +01:00
9e21061f3f Client.Hello, Client.Lookup and parseReply 2014-02-09 18:40:51 +01:00