Commit graph

35 commits

Author SHA1 Message Date
Jimmy Zelinskie
a4b08c021b mv pkg/stopper pkg/stop
This makes most of the callsites stutter slightly less.
2017-02-02 21:09:25 -05:00
Jimmy Zelinskie
3f29aa358b middleware: sanitize max scrape infohashes
Fixes #268.
2017-02-02 02:32:35 -05:00
Leo Balduf
102b032c43 udp: fix ordering of scrapes 2017-01-30 13:07:14 +01:00
Leo Balduf
3ae3843944 bittorrent: add AddressField to ScrapeRequest 2017-01-20 20:34:39 +01:00
Leo Balduf
3c098c0703 middleware: add sanitization hook 2017-01-20 20:29:59 +01:00
Leo Balduf
fe8c74bd9c middleware: add varinterval 2016-12-16 14:19:02 +01:00
Jimmy Zelinskie
e3e545e22e stopper: move to pkg package
This also adds a package docs for the stopper package.
2016-12-11 21:36:01 -05:00
Jimmy Zelinskie
5b9de47e7a middleware/jwt: assume KIDs in JWK Set
This also adds additional debug logging.
2016-10-26 13:58:28 -04:00
Jimmy Zelinskie
d86b8e14de middleware: fix scrape data in announces
This change adjusts it such that only empty Swarms return the request
Peer. This also increments the Scrape data properly if a peer is added.

Fixes #241.
2016-10-01 22:56:07 -04:00
Leo Balduf
45a5e632ae responseHook: always include the announcing peer
Fixes #231
Fixes #232
2016-09-29 18:51:05 -04:00
Jimmy Zelinskie
46bd349a23 jwt: add initial jwt update
This also changes the signature of the constructor to return an error.
2016-09-26 21:31:34 -04:00
Jimmy Zelinskie
7f7f2726b4 jwt: add updateKeys method and call in constructor
Fixes #225.
2016-09-26 21:31:34 -04:00
Leo Balduf
86ebb108fc cmd/chihaya: stop hooks
Fixes #214.
2016-09-24 19:51:18 -04:00
Leo Balduf
3ec6f10e93 hooks: add response hook
Fixes #216
2016-09-08 16:02:01 -04:00
Leo Balduf
565ac21834 hooks: add swarm interaction 2016-09-08 15:16:25 -04:00
Leo Balduf
1ff41d7882 middleware: make hooks return a context 2016-09-05 18:26:04 -04:00
Leo Balduf
146fbedb86 general: add missing documentation
Fixes #46
2016-09-05 14:58:58 -04:00
Jimmy Zelinskie
fa32839623 replace std log w/ logrus
There still needs to be much more logged with the debug level.
2016-09-05 12:10:42 -04:00
Jimmy Zelinskie
7ca15e9943 middleware: add blacklist support 2016-09-01 20:49:15 -04:00
Jimmy Zelinskie
e39da6b4e6 main: add CreateHooks() method for ConfigFile
This change simplifies middleware.Logic to having only one list of
PreHooks and one list of PostHooks.
2016-09-01 19:48:49 -04:00
Jimmy Zelinskie
6e790eed74 add initial jwt middleware 2016-09-01 19:48:49 -04:00
Jimmy Zelinskie
674ab8a4c6 NewClientID now takes PeerID instead of string 2016-08-16 23:29:06 -04:00
Jimmy Zelinskie
07cc413399 clientwhitelist: fix compilation issues 2016-08-16 22:37:29 -04:00
Jimmy Zelinskie
fc13031d96 move to std context package 2016-08-16 22:34:05 -04:00
Jimmy Zelinskie
cc6614c474 rename back to chihaya 2016-08-16 22:17:10 -04:00
Jimmy Zelinskie
040a3294b1 middleware: add clientwhitelist 2016-08-16 22:17:10 -04:00
Jimmy Zelinskie
c3137508d0 make new storage pkg with memory impl 2016-08-16 22:17:10 -04:00
Jimmy Zelinskie
4df538d027 pass peer to storage 2016-08-16 22:17:10 -04:00
Jimmy Zelinskie
c9fe95b103 s/backend/middleware 2016-08-16 22:17:10 -04:00
Jimmy Zelinskie
1bff8d1571 delete old code 2016-08-16 22:17:10 -04:00
mrd0ll4r
b9900b2e12 middleware: fix varinterval README (#175) 2016-05-25 01:36:52 -04:00
mrd0ll4r
7f16c55d81 make infohash and peerID byte arrays (#169) 2016-05-16 23:48:23 -04:00
Leo Balduf
373d3c4c31 make peer Equal work on values 2016-04-16 16:05:29 -04:00
Leo Balduf
0607841b3b middleware: added varinterval 2016-04-06 11:33:14 -04:00
Leo Balduf
6440f91a8e middleware: added deniability 2016-04-02 17:19:33 -04:00