Commit graph

2906 commits

Author SHA1 Message Date
caryoscelus
c92b8bc56c Fix UiServer.getPosted hanging in some circumstances
fixes #198

while it's not exactly clear what causes the difference in behaviour,
but under certain conditions UiServer.getPosted used to hang trying
to readline() POST request (e.g. from UiPassword login). using
read(CONTENT_LENGTH) seems to fix the issue
2023-11-01 22:12:14 +00:00
caryoscelus
9629442c1b
Merge pull request #214 from caryoscelus/fix-tests
Fix tests
2023-09-16 11:56:08 +00:00
caryoscelus
e7b566a8a8 Merge remote-tracking branch 'origin/master' 2023-09-15 14:23:38 +00:00
caryoscelus
537d7337e2 debug log 2023-09-15 14:23:19 +00:00
caryoscelus
337f98a479 Add --disable_port_check option 2023-09-04 21:39:46 +00:00
caryoscelus
5fadd5f9bd Improve SafeRe code readability
function isSafePattern was never used as boolean function, its only
useful behaviour being raising exception on bad regexp, so it's renamed
and reused accordingly
2023-07-31 08:28:29 +00:00
Vadim Ushakov
30db5a4652 Fix https://github.com/HelloZeroNet/ZeroNet/issues/2757 2023-07-31 08:23:13 +00:00
caryoscelus
a334eefdf7 Bump version 2023-07-30 19:00:43 +00:00
caryoscelus
0f3a489415
Merge pull request #225 from caryoscelus/fix-geoip-load
Fix geoip load
2023-07-30 13:17:15 +00:00
caryoscelus
a509032c8e Drop attempts at py<3.6 compatibility
Wake up, it's 2023 now. Also f-strings has been used prominently already
2023-07-29 18:03:45 +00:00
caryoscelus
b358435016 Remove dead code 2023-07-29 17:20:45 +00:00
caryoscelus
18d35d3bed v0.7.10 2023-07-26 08:01:47 +00:00
caryoscelus
40ae09dca8 py3.8 compat 2023-07-26 07:56:31 +00:00
caryoscelus
eeaded23f9 Update bootstrap url 2023-07-26 07:14:14 +00:00
caryoscelus
5945dd2e3c
Merge pull request #221 from caryoscelus/fix-0net-leak
Disable third-party access to 0net server.
2023-07-26 07:06:46 +00:00
caryoscelus
615e155043
Merge pull request #219 from caryoscelus/bootstrap
Bootstrap 0net trackers on first launch
2023-07-26 07:06:18 +00:00
caryoscelus
f336cd02bd More sophisticated detection of cross-site info leak
see previous commit for more info
2023-07-25 20:58:57 +00:00
caryoscelus
0811902ff6 Disable third-party access to 0net server.
This previously enabled clearnet sites to detect if user is running 0net instance
on their machine as well as to detect which 0net sites are downloaded.

Check online at https://riza-committee.github.io/demos/0scan.html

Intra-0net version of this is still available at
http://127.0.0.1:43110/1ScanCY9fjmjanDt7NwvyNQCL16hqWnVM/
2023-07-25 19:13:12 +00:00
caryoscelus
a8c2117a55 CHANGELOG & revision bump 2023-07-25 15:11:33 +00:00
caryoscelus
dd5976a08e
Merge pull request #218 from caryoscelus/upnp-anonymous
more anonymous upnp
2023-07-25 15:06:18 +00:00
caryoscelus
d924e9bb2e fix error handling (was: unbound local variable) 2023-07-24 10:29:25 +00:00
caryoscelus
70f2eeada1 Don't spam console with failed announcements
These should be debug, not warning (previously warning reporting was disabled)
2023-07-24 09:18:42 +00:00
caryoscelus
1d2e264a44 Remove manually copied tracker list 2023-07-24 08:36:00 +00:00
caryoscelus
41c7bd47c8 Use Syncronite directly by default 2023-07-24 08:22:19 +00:00
caryoscelus
2b51e23650 Fix importBundle
Avoid using SiteManager as initializing it out of order breaks things
2023-07-24 08:21:31 +00:00
caryoscelus
9444e097a6 New command line action: importBundle; load bootstrap bundle on first run
- importBundle imports zip archive of sites
- latest bootstrapping bundle is downloaded if data/ dir is empty; primary
  reason for this for now is to avoid constantly updating tracker list in
  git tree and use Syncronite instead
2023-07-23 21:25:11 +00:00
caryoscelus
5a184a5489 Don't hide warnings in console
WARNING logging level is higher than INFO so really shouldn't hide them..
2023-07-23 21:13:58 +00:00
caryoscelus
76d1b14eaf Ignore missing sites.json gracefully 2023-07-23 21:13:52 +00:00
caryoscelus
cbf9c78e8c helper function: quickly check if a string looks like a valid Bitcoin address 2023-07-23 10:44:21 +00:00
caryoscelus
f94765f7b9 more anonymous upnp
thanks to 0netdwf for reporting
2023-07-23 09:37:52 +00:00
caryoscelus
5cc1bdf92f
Merge pull request #213 from zeronet-conservancy/recursive-publish
support --recursive sitePublish on command line
2023-07-22 12:08:04 +00:00
caryoscelus
3330b19e31 don't fail if http_accept header is */*
fixes #67
2023-07-21 12:00:23 +00:00
caryoscelus
51a6eaa057 fix threadpool test 2023-07-20 18:28:21 +00:00
caryoscelus
260c4e626b make tests launch 2023-07-20 18:28:04 +00:00
caryoscelus
c09b5e16c9 sitePublish --recursive option 2023-07-20 16:29:04 +00:00
caryoscelus
8700351f33 remove unused broken code 2023-07-20 16:16:54 +00:00
caryoscelus
3dc2283718 allow setting permission_rules to null to forbid everything 2023-07-18 20:08:20 +00:00
caryoscelus
8b7d7d5f7c bump version 2023-07-18 19:40:45 +00:00
caryoscelus
f966a4203f v0.7.9
no longer officially maintained
2023-07-02 03:46:37 +00:00
caryoscelus
053eb8e7d6 updated trackers from Syncronite by @Styromaniac 2023-07-02 03:45:59 +00:00
caryoscelus
e36f7bb3a5 siteSign accepts absolute paths as well as paths relative to working directory
- also store working_dir in config so it's possible to use from other
  actions as well

fixes #209
2023-07-02 03:40:11 +00:00
caryoscelus
8706f5f712 revert circular import style in Site/SiteManager
fixes #203
2023-03-14 12:18:42 +00:00
caryoscelus
b5380f6b26 Fix /raw readdress
fixes #199
2022-12-11 17:48:37 +00:00
caryoscelus
3c7670a703 fix debug messages 2022-12-10 16:39:18 +00:00
caryoscelus
091323d4e3 TODO comments 2022-12-06 15:59:52 +00:00
caryoscelus
fa1c25326a report error when peer rejects our update
also improve code and comment
2022-12-05 09:31:06 +00:00
caryoscelus
03a9f2c490 new development cycle 2022-11-29 16:40:46 +00:00
caryoscelus
7c73d7543c minor code improvement
use format strings for readability
2022-11-29 16:39:21 +00:00
caryoscelus
0054eca9df v0.7.8.1
update CHANGELOG & bump revision
2022-11-28 15:53:08 +00:00
caryoscelus
b1f2560037 update CHANGELOG
preparing v0.7.8.1
2022-11-28 13:03:51 +00:00