Commit Graph

24 Commits

Author SHA1 Message Date
idk
6ebe813d0e make it easy to get the addresses of the gosam tunnels 2019-04-20 23:27:47 -04:00
idk
4b77bc4d02 fix excessive destination creation 2019-03-14 22:46:17 -04:00
idk
49533844d6 incorporate cryptix-debug without the counter 2019-02-28 14:22:28 -05:00
idk
cc91ed6bf0 remove 'commented-out' id 2019-02-27 22:04:04 -05:00
idk
5ffafcd28d explicitly et invalid initial lastaddr 2019-02-27 22:00:35 -05:00
idk
4778044200 correct CONTRIBUTING.md 2019-02-27 20:46:18 -05:00
idk
d7af8dafa9 make dialer context aware and avoid redundant session create's 2019-02-27 20:25:36 -05:00
idk
56cc5bd017 Don't check version if handshake succeeds, just accept that OK is OK 2019-02-26 23:10:10 -05:00
idk
a537690baa add signature type support 2019-02-24 23:08:01 -05:00
idk
c69106a879 add gzip 2019-02-21 17:38:11 -05:00
a05f2d68df send options before newline
according to SAM Connection Handshake[1] these options are not part of
the `HELLO VERSION ..` exchange. only later during session creates etc

[1] - https://geti2p.net/en/docs/api/samv3

in any case these wouldn't be send after the newline
2018-08-21 16:23:15 +02:00
idk
89742a3ec4 added reduce-on-idle and close-on-idle options (closes #9) 2018-08-21 16:21:48 +02: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
97f9bc7e56 Edited Comments according to golint 2014-02-14 12:05:13 +01:00
a421daf8d9 Added some Documentation and Example of using it with http.Transport 2014-02-11 14:48:13 +01:00
b0e9ab001e Added Verbose mode and be more fixed some newline inconsistencies 2014-02-11 14:08:52 +01:00
3575c9897f Refactored Send<>Parse reply into .sendCmd() 2014-02-11 13:11:26 +01:00
9de2fd3f5b Always send Hello on NewClient 2014-02-11 13:10:24 +01:00
ce26df96ac Trying to implement Dial for usage with http.Transport 2014-02-10 21:01:55 +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