Yonle
5a20102226
oops.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-18 19:45:19 +07:00
Yonle
f00e449036
bouncer: rework relay abandon func
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-18 19:42:45 +07:00
Yonle
b4eab0d2f4
bouncer: logger: log when user initialized first command
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-18 19:40:56 +07:00
Yonle
a6e7caa76b
bouncer: only start connect after first relay command.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-18 19:37:59 +07:00
Yonle
e97c9c0380
http: ANOTHER wording
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-18 19:20:13 +07:00
Yonle
fc3b329b94
http.js: another wordings.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-18 19:18:12 +07:00
Yonle
f28efc87fe
http.js: probably some wordings.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-18 19:13:41 +07:00
Yonle
d798d7e3af
it bypasses. now get it fix asap.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-18 13:08:16 +07:00
Yonle
a9188ae160
auth: fix bug on using event validation
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-18 12:56:00 +07:00
Yonle
64749963be
bouncer: improve the acceptKinds
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-18 12:45:26 +07:00
Yonle
3cc41c47c2
http: no need to provide that long ass example. non-distraction one is fair enough.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-18 12:07:08 +07:00
Yonle
4716b56272
these codes is not needed as matchFilters already handles it.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-18 11:54:02 +07:00
Yonle
b8e93b395d
http: favicon.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-18 11:47:49 +07:00
Yonle
834cd595e5
bouncer: try put merged filters into memory instead of generating everytime
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-18 11:41:32 +07:00
Yonle
743977a82e
bouncer: filter in bouncer to handle filters, Manually.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-18 11:25:33 +07:00
Yonle
8cfc58d105
well. i forget to update the year in README for the license section
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-18 08:03:52 +07:00
Yonle
9b6160fb66
Release: 2.0.5
...
Recoding, improvements, and temporary features removal.
What's new?
===========
- Dependencies bump
- Use of requesting different subscription ID rather than using
subscription ID from client. Fixes late-close problems.
- Filter validation is now checked with nostr-tools instead, Fixes issue
with conflicting client that puts more than single filter in a single
`REQ` subscription.
- Reworked session code.
What's removed?
===============
- EOSE Timeout
- Cache to local relay (unreliable)
- [Temporary Removal] Orphan session
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-18 00:42:23 +07:00
Yonle
8078466d4f
bouncer: re-handle NIP-50
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-17 19:55:39 +07:00
Yonle
7fae06bc8c
code: renaming & reworking as per nostr-tools
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-17 19:35:33 +07:00
Yonle
8ba52b945e
dependencies bump
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-17 19:23:49 +07:00
Yonle
726273f256
bouncer: small recode of filter limit handler
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-17 19:20:25 +07:00
Yonle
b865fa1b65
bouncer: use matchFilters function from nostr-tools
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-17 19:02:31 +07:00
Yonle
c20430e756
bouncer: too many filter validations.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-17 18:42:57 +07:00
Yonle
15fe2e7dcd
bouncer: bring these checkers back.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-17 17:46:25 +07:00
Yonle
579b800466
bouncer: check via readyState instead of the variable availability
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-17 17:40:23 +07:00
Yonle
d38852230d
bouncer: as it requests with faked subscriptionID, these checks may not needed.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-17 17:19:55 +07:00
Yonle
1a5717a42e
bouncer: session code reworking.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-17 15:33:15 +07:00
Yonle
27e27ffc2b
bouncer: remove cache as it still consumes bandwidth anyway
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-16 23:21:06 +07:00
Yonle
95bc83261a
bouncer: remove eose_timeout
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-16 23:07:24 +07:00
Yonle
dbe7250965
bouncer: temporary remove orphan feature
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-16 23:00:52 +07:00
Yonle
82e1838f2c
bouncer: Relays handling rework
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-16 22:55:53 +07:00
Yonle
34f9a02b85
README: suggest cloning stable branch instead
2024-02-16 22:52:05 +07:00
Yonle
1206f592f5
fix commit 568ea5b
2024-02-03 15:59:58 +07:00
Yonle
568ea5b428
bouncer: handle <filter.ids> the same way as handling <filter.limit>
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-03 15:44:56 +07:00
Yonle
98626bc14b
defaultconf: disable pause_on_limit.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-03 12:39:57 +07:00
Yonle
0ae02b1edd
defaultconf: pause_on_limit is not technically brutal anymore
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-31 20:58:14 +07:00
Yonle
356a985ede
bouncer: small typo on handling aliases
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-31 20:46:43 +07:00
Yonle
22486202e4
also handle after client close
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-29 22:36:06 +07:00
Yonle
990c8b2202
also need to delete these aliases
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-29 22:08:16 +07:00
Yonle
366905149f
bouncer: In bouncer side, Try do different approach for REQ-ing.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-29 22:03:39 +07:00
Yonle
3429f449ad
bouncer: disable eose_timeout by default or when unspecified
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-29 21:41:52 +07:00
Yonle
a46b56adad
bouncer: close an already opened subscription
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-29 21:36:20 +07:00
Yonle
5d6e35ae7e
bouncer: also check for kinds filter
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-27 23:12:11 +07:00
Yonle
a0ec8bd2bc
bouncer: do not keep unauthorized session.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2.0.4
2024-01-27 23:05:53 +07:00
Yonle
67e44ffb84
http&bouncer: enable synchronousEvents & deflate compression by default.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-27 19:42:18 +07:00
Yonle
8f3689a1c7
bouncer: more cFilter handling.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-27 07:38:04 +07:00
Yonle
7a71bcd779
major bugfix: fix sock readyState handler
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-27 07:33:15 +07:00
Yonle
d0b040fbb9
bouncer: logger: no need to tell clearing orphan sessions when max_orphan_sess is 0.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-24 16:33:06 +07:00
Yonle
594fe63805
Release 2.0.4
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-24 16:25:51 +07:00
Yonle
e166e0821b
bouncer: show IP when disconnected.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-24 16:11:49 +07:00