Commit graph

1513 commits

Author SHA1 Message Date
shortcutme
8ff3bbc9a7
Local ip not added to ips 2018-02-08 18:02:40 +01:00
shortcutme
498191261c
Don't log local ips on query 2018-02-08 18:02:25 +01:00
shortcutme
f9091ea951
Don't connect to myself 2018-02-08 18:01:48 +01:00
shortcutme
8b9d75d726
Don't mark passive local connections as not connectable 2018-02-08 18:01:34 +01:00
shortcutme
7e4a4459b4
Don't multiplex local connection 2018-02-08 17:59:27 +01:00
shortcutme
70fd33e587
Message from local peer does not means internet connection 2018-02-08 17:58:44 +01:00
shortcutme
a265c2a7ca
Pass peer discovery source to addPeer 2018-02-08 17:57:26 +01:00
shortcutme
64b4789bc1
Generalize tracker logging 2018-02-08 17:54:09 +01:00
shortcutme
13e651c822
Store and prefer recent peers from trackers and local peer discovery 2018-02-08 17:53:17 +01:00
shortcutme
7d3fd6f5b6
Only add recent peers if there is more 2018-02-08 17:51:44 +01:00
shortcutme
0c91fd396e
De-duplicate peers before publishing 2018-02-08 17:51:10 +01:00
shortcutme
1827e1e033
Force announce on startup 2018-02-08 17:50:40 +01:00
shortcutme
771dce4c8c
Pre-generate site address hash 2018-02-08 17:50:23 +01:00
shortcutme
ab2fe909f0
Prefer connected workers 2018-02-08 17:49:40 +01:00
shortcutme
6fb9c6ef05
Rev3234, Ignore unknown characters from connection logging 2018-01-30 18:59:26 +01:00
shortcutme
9b41950e4c
Rev3233 2018-01-30 14:29:57 +01:00
shortcutme
bc09b6280b
Add index.html as default inner_path to uirequest 2018-01-30 14:29:38 +01:00
shortcutme
3e7a4f593a
Fix tor PEX test as private peers no longer got exchanged 2018-01-30 14:29:10 +01:00
shortcutme
679a88c095
Rev3232 2018-01-30 14:00:39 +01:00
shortcutme
97d1d0d63b
Fix cleanup sites with no modified date 2018-01-30 13:59:59 +01:00
shortcutme
ee30f78ab0
Fix logging utf8 chars in connections 2018-01-30 13:59:39 +01:00
shortcutme
566b689ca6
Don't connect to private ip addresses in tor always mode 2018-01-30 13:59:18 +01:00
shortcutme
c2edbb30b5
Don't send private ip addresses on pex 2018-01-30 13:58:01 +01:00
shortcutme
05c1df81ad
Rev3230 2018-01-28 16:44:52 +01:00
shortcutme
48e8b956d2
Only add myself to connect blacklist if running other cli action 2018-01-28 16:42:23 +01:00
shortcutme
56e80f7c0c
Add per-cmd site permission query 2018-01-28 16:41:42 +01:00
shortcutme
4a823c57d5
Rev3229 2018-01-27 12:25:03 +01:00
shortcutme
2f74f64d65
Longer timeout for updates and large files before other peers started working on it 2018-01-27 12:24:50 +01:00
shortcutme
d44677e46f
Don't keep connections for sites that not modified in last week 2018-01-27 12:21:25 +01:00
shortcutme
4afb6b3d9c
Limit connections to 512 by default 2018-01-27 12:20:40 +01:00
shortcutme
18d3e8905e
Longer timeout for tor peers 2018-01-27 12:19:57 +01:00
shortcutme
fd14a4ac80
Don't create connection to blacklisted peer 2018-01-27 12:19:37 +01:00
shortcutme
cc48a0ad86
Turn on gevent block logging by default 2018-01-27 12:15:18 +01:00
shortcutme
3fb9f900f6
Rev3225, Handle correctly and test out of range bigfile requests 2018-01-21 18:56:30 +01:00
shortcutme
9c4093dc7c
Rev3224, Small cosmetic changes on sidebar Sign and publish button 2018-01-21 18:14:12 +01:00
shortcutme
342f9f6096
Rev3223, Fix error when using ip wihout city entry 2018-01-20 12:11:43 +01:00
shortcutme
0c6c7d2725
Rev 3222, Use eval in bench for older pytyhon compatibility, Remove unnecessary print from chart archive 2018-01-20 11:49:17 +01:00
shortcutme
f5846853b3
Bump rev in config 2018-01-19 13:52:27 +01:00
shortcutme
6db011d807
Rev3221, Revert to afterLoad execution immediately after plugins loaded to avoid problems with plugins 2018-01-19 02:51:16 +01:00
shortcutme
fe59352800
Version 0.6.1, Rev3220 2018-01-19 02:34:32 +01:00
shortcutme
dedf6cd92f
Support initial calls for console bench function 2018-01-19 02:32:44 +01:00
shortcutme
99fdbcd1fe
Fix ratelimit test 2018-01-19 02:32:11 +01:00
shortcutme
005358f4bf
Use separate db connection for rebuilding 2018-01-19 02:31:46 +01:00
shortcutme
ea1cd63929
Log hashfield change time on send 2018-01-19 02:30:52 +01:00
shortcutme
c8ac4c0278
Update content update time after successful listmodifications 2018-01-19 02:29:18 +01:00
shortcutme
49a332724e
No connected peers if no connection server 2018-01-19 02:27:40 +01:00
shortcutme
a21c417c0b
Better announce logging 2018-01-19 02:27:19 +01:00
shortcutme
155f05cb63
Trigger onLoaded after config loaded 2018-01-19 02:27:00 +01:00
shortcutme
6d644922d5
Don't display greenlet errors twice 2018-01-19 02:24:29 +01:00
shortcutme
b0a125c113
Ignore case in file merge order 2018-01-19 02:23:33 +01:00
shortcutme
d17cb3fafc
Helper for avg calculation 2018-01-19 02:21:54 +01:00
shortcutme
814fa881d0
skip on invalid received hash ids 2018-01-19 02:20:20 +01:00
shortcutme
fd451ae766
Make indexes and tables optional 2018-01-19 02:18:40 +01:00
shortcutme
089bb92f70
Record last query time on every command 2018-01-19 02:18:19 +01:00
shortcutme
5b6e1f699d
Add db id to logging 2018-01-19 02:17:23 +01:00
shortcutme
03c469ff3a
Formatting 2018-01-19 02:16:50 +01:00
shortcutme
c122dc108a
Record received and sent requests 2018-01-19 02:16:33 +01:00
ZeroNet
9b3a50c124
Merge pull request #1240 from imachug/issue-1239
Don't handle `open` or `success` in error message as a sign of port being opened
2018-01-14 10:24:21 +01:00
Ivanq
5d7b8cfd48 Return dict object, not single None value 2018-01-14 09:38:55 +03:00
Ivanq
6318c0889a Don't check error message for 'open' when checking port 2018-01-14 09:35:03 +03:00
shortcutme
0aae28e836
Rev3179 2018-01-05 20:23:35 +01:00
shortcutme
b298571395
Change unreliable tracker 2018-01-05 20:23:29 +01:00
shortcutme
4f6a496c36
Test named db select arguments 2018-01-05 20:22:56 +01:00
shortcutme
a3a7af73bd
Fix named db query list parameters when query ends with parameter 2018-01-05 20:22:25 +01:00
Ivanq
8986d8037a Typos 2017-12-30 12:16:16 +03:00
Ivanq
d97631fb8c str() 2017-12-30 12:06:07 +03:00
Ivanq
be1eb14fd0 Handle dict value being a list 2017-12-30 10:06:05 +03:00
shortcutme
92e353be40
Rev3178, Skip sites with not database in newsfeed 2017-12-27 11:09:16 +01:00
shortcutme
ccd002b97f
Rev3177, Import missing SafeRe module 2017-12-20 23:35:49 +01:00
shortcutme
c7d067ea3c
Rev3176, Skip listing ignored directories on signing 2017-12-20 23:25:25 +01:00
shortcutme
7ee5cbe473
Rev3175, Make getConnectablePeers return not-connected peers by default 2017-12-19 16:14:13 +01:00
shortcutme
c9c1d10ee4
Rev3173, Don't display Cors permission ask if already has, Fix error on Cors request on non-existent site 2017-12-18 02:37:09 +01:00
shortcutme
b5452bce6b
Rev3171, Allow 127.0.0.1 peers for testing reasons 2017-12-15 12:28:48 +01:00
shortcutme
6628b07bba
Rev3170 2017-12-15 12:14:09 +01:00
shortcutme
8f34afc630
Send websocket update on site limit change 2017-12-15 12:13:35 +01:00
shortcutme
1ac69ae315
New UiWebsocket API command to run commands as other site 2017-12-15 12:13:19 +01:00
shortcutme
8a331e7400
UiWebsocket handleRequest takes parsed request intead of raw message 2017-12-15 12:11:27 +01:00
shortcutme
ca42740e1b
Don't add peer 127.0.0.1 and 0.0.0.0 2017-12-15 12:10:36 +01:00
shortcutme
1d5c0597d9
Ignore site list order 2017-12-15 01:58:57 +01:00
shortcutme
acc734d22d
Rev3167, Fix newsfeed queries with multiple params 2017-12-12 23:46:05 +01:00
shortcutme
8ab7d26cd1
Rev3165, Avoid UI block when rubilding a merger site 2017-12-12 11:06:32 +01:00
shortcutme
e86375f721
Rev3164 2017-12-11 19:56:37 +01:00
shortcutme
a2567277c6
Rev3163 2017-12-11 19:21:41 +01:00
shortcutme
74e5f5310b
Rev3161 2017-12-07 15:25:50 +01:00
shortcutme
51fdf95295
Allow ajax ranged requests 2017-12-07 15:25:32 +01:00
shortcutme
0009b1b7d1
Allow site fullscreen functions 2017-12-07 15:23:51 +01:00
shortcutme
74e50e209a
Rev3158, Fix site clone with sites larger that 10MB 2017-12-04 16:04:10 +01:00
shortcutme
1208294747
Remove unused variable, more clear comment on state object 2017-12-02 15:35:32 +01:00
shortcutme
3de182a4ed
Rev3157, Fix websocket utf8 error when requesting files from different sites at the same time 2017-12-02 15:31:36 +01:00
shortcutme
90ff9ac7fb
Rev3155, Avoid UI hang during db rebuild 2017-12-02 02:38:17 +01:00
shortcutme
6b92d011d2
Rev3153, Download missing sites from sites.json 2017-11-30 19:38:56 +01:00
shortcutme
8b9a8997ac
Rev3151 2017-11-29 13:50:03 +01:00
shortcutme
cfeb2797e3
Merge wrapper js 2017-11-29 13:48:30 +01:00
shortcutme
06a50b189d
Use empty placeholder if not specified 2017-11-29 13:48:20 +01:00
shortcutme
7c1a4e353d
Allow inject html command from ui server 2017-11-29 13:48:07 +01:00
shortcutme
2b611ae798
Rev3148, Fix big site size calculation 2017-11-28 18:16:37 +01:00
shortcutme
fdd82f7ac4
Rev3146, Limit noparallel queue to one call 2017-11-20 03:13:58 +01:00
shortcutme
ea9d345548
Rev3144 2017-11-19 18:22:28 +01:00
shortcutme
24372470f6
My_ip no longer required to be sent via updates 2017-11-19 18:21:47 +01:00
shortcutme
51f1781df4
Move bad file checking to separate function, root content.json does not requires file_info 2017-11-19 18:21:10 +01:00
shortcutme
972bef4f7d
Add invalid content.json to bad files 2017-11-19 18:19:45 +01:00
shortcutme
a2da8eca68
Master startup by waiting less between site update checks 2017-11-19 18:18:26 +01:00
shortcutme
620d8caea9
Always use peer's real ip instead of reported one using update parameter 2017-11-19 18:18:08 +01:00
shortcutme
35bd5e8595
UPnP formatting 2017-11-17 18:09:02 +01:00
shortcutme
86e607c403
Catch all exception on uPnP port opening 2017-11-17 18:08:45 +01:00
Biosias
25add764e4
Add files via upload
Adding Slovak translation (sk.json)
2017-11-11 17:26:29 +01:00
shortcutme
7d8490bdcb
Rev3139 2017-11-10 11:16:30 +01:00
shortcutme
ff7ac90785
Rev3137 2017-11-09 13:33:18 +01:00
shortcutme
b01e381087
Async port opening using different nic ips 2017-11-09 13:33:02 +01:00
shortcutme
5026f1b0a8
Delay RateLimit call after delayed call triggered 2017-11-09 13:32:21 +01:00
shortcutme
9d09890457
Rev3135, Add fileNeed command compatibility to merger sites 2017-11-06 13:16:46 +01:00
shortcutme
4483180569
Rev3134 2017-11-05 23:45:08 +01:00
shortcutme
4465146615
Update server_info on port open status change 2017-11-05 23:43:51 +01:00
shortcutme
3b7750c24e
Send serverChanged event on Tor status change 2017-11-05 23:43:03 +01:00
shortcutme
7962baa2da
Also join to serverChanged channel by default 2017-11-05 23:42:33 +01:00
shortcutme
6f37654303
Send serverChanged event on server_info changes 2017-11-05 23:42:14 +01:00
shortcutme
2781e31be0
Keep track of websocket connections 2017-11-05 23:40:59 +01:00
shortcutme
b39d86d020
serverChanged channel 2017-11-05 23:37:53 +01:00
shortcutme
754a3db1b9
Allow multiple channel joins by one command 2017-11-05 23:37:32 +01:00
ZeroNet
8242e91238
Merge pull request #1165 from imachug/dbquery
DbQuery and Newsfeed bug
2017-11-04 13:01:05 +01:00
shortcutme
c3250378ee
Rev3128, Allow modals for sites 2017-10-30 15:15:40 +01:00
shortcutme
9d4515954b
Rev3127, Fix UiWebsocket async message response skip 2017-10-29 23:39:36 +01:00
shortcutme
46455737cc
Rev3126 2017-10-28 02:40:42 +02:00
shortcutme
2e74b73ba0
Verify signatures using CLI 2017-10-28 02:39:49 +02:00
Ivanq
c64e97f0d6 DbQuery: WHERE without AND is still WHERE 2017-10-26 18:32:05 +03:00
shortcutme
9034449e96
Fix fileInfo test 2017-10-26 10:50:56 +02:00
shortcutme
00b6842f35
Rev3125 2017-10-26 10:43:51 +02:00
shortcutme
e8f049a765
Strip / from content.json location of file_info 2017-10-26 10:43:10 +02:00
shortcutme
53afd97346
Alway start workers for slow tasks 2017-10-26 10:40:41 +02:00
shortcutme
604792a4dd
Call response function for return values of UiWebsocket actions 2017-10-26 10:40:02 +02:00
shortcutme
9d511ba165
Rev3122, Auto ignore database file 2017-10-22 11:13:09 +02:00
shortcutme
c519239d87
Add more detail on cli signing error 2017-10-22 11:11:26 +02:00
shortcutme
fa409e63f8
Rev3120 2017-10-21 11:03:09 +02:00
shortcutme
e048fa6c6a
Target 6 connections per site 2017-10-21 11:02:40 +02:00
shortcutme
940d583f9a
Fix site violation bug when using Tor 2017-10-21 11:02:27 +02:00
shortcutme
ed965041e6
Report progress on GeoLite2 download 2017-10-21 11:01:57 +02:00
shortcutme
d50603f722
Rev3114, Add details to permission requests 2017-10-17 17:02:56 +02:00
shortcutme
4efcfa8bf4
Rev3112, Allow user rules based on auth address 2017-10-16 20:26:41 +02:00
shortcutme
9551d11f5c
Rev3110 version update 2017-10-16 15:13:02 +02:00
shortcutme
b40ef09108
Rev3110 2017-10-16 15:12:34 +02:00
shortcutme
75cf8bbb0a
Change arument order of siteSign API call 2017-10-16 15:11:43 +02:00
shortcutme
c40f0c6919
Fix uploading bigfile to non-user directory 2017-10-16 15:11:19 +02:00
shortcutme
807dc866e5
Rev3106, Cancel other part downloads when delete optional file 2017-10-16 01:43:51 +02:00
shortcutme
3f52f78af2
Rev3105, Change tracker domain due GFW banned zeronet.io domain 2017-10-14 12:51:31 +02:00
shortcutme
a66b71fb9c
Rev3104, Fix bigfile signing via command line 2017-10-13 11:27:45 +02:00
shortcutme
65eff6b6d9
Rev3102 2017-10-13 01:23:43 +02:00
shortcutme
027ee83c6f
Wait 0.1s for new tasks before shut down worker 2017-10-13 01:23:26 +02:00
shortcutme
60af54a17e
Start find optional files if no peers to try 2017-10-13 01:23:09 +02:00
shortcutme
19c335e39a
Fix bytes sent stats 2017-10-13 01:22:16 +02:00
shortcutme
d32303de57
Increase buffer size for file streaming 2017-10-13 01:21:45 +02:00
shortcutme
de360a8585
Received and sent connection command statistics 2017-10-13 01:21:05 +02:00
shortcutme
24c1596048
Keep track last received command for connection 2017-10-13 01:19:34 +02:00
shortcutme
4a75d9d4f5
Rev3099 2017-10-11 14:30:12 +02:00
shortcutme
68ea4d02cb
Don't reset bad file counter after restart, but limit to 20 2017-10-11 14:29:54 +02:00
shortcutme
8b3ff6454f
Limit connections to 500, backlog to 100 2017-10-11 14:22:23 +02:00
shortcutme
de28643e20
Rev3098 2017-10-10 14:58:52 +02:00
Filip Š
136a0fbe28 Add Slovenian translate. 2017-10-07 20:16:20 +02:00
shortcutme
7905e12fc3
Rev3097, Add peer info for bigfiles even if it's not downloaded 2017-10-06 00:42:19 +02:00
shortcutme
07caaa6b48
Fix removed is_pinned flag on content.json update 2017-10-05 19:24:39 +02:00
shortcutme
0e85beec30
Rev3094 2017-10-04 17:27:08 +02:00
shortcutme
f1276beb97
Bump prority for non-user json files 2017-10-04 17:27:01 +02:00
shortcutme
365ba9b5f4
Force start peers for optional files 2017-10-04 17:26:43 +02:00
shortcutme
f997a69ebc
Run checkTask for every task 2017-10-04 17:26:21 +02:00
shortcutme
e2b6dd37b7
Only announce once per checkTask loop 2017-10-04 17:25:56 +02:00
shortcutme
bc9bddf918
Make sure the hashfield response is correct 2017-10-04 17:25:33 +02:00
shortcutme
e4fc4ca410
Version 0.6.0, Rev3091 2017-10-04 13:36:29 +02:00
shortcutme
0b9bc56959
Test sub-directory files in user diretories 2017-10-04 13:36:14 +02:00
shortcutme
e9beeb85fc
Use with to open files to avoid keeping them open in case of errors 2017-10-04 13:35:55 +02:00
shortcutme
a71e82c315
Test user sub-directories inner_path 2017-10-04 13:35:15 +02:00
shortcutme
d176150248
Test multiple length of message for signing 2017-10-04 13:34:50 +02:00
shortcutme
ab9fa9ec0c
Mark data/optional.* as optional for test site 2017-10-04 13:34:14 +02:00
shortcutme
3d57fbb1b8
Use the real size of content.json instead of predefine it 2017-10-04 13:33:26 +02:00
shortcutme
f0f9240fc8
getDirname strips the leading / chars 2017-10-04 13:33:00 +02:00
shortcutme
b1bfe39cd5
Use merged getFile function call to download file using streaming 2017-10-04 13:32:39 +02:00
shortcutme
c82b19687a
Spy object also stores the called object 2017-10-04 13:31:49 +02:00
shortcutme
be755fe25e
Custom logging for tests to spot possible performance bottlenecks easier 2017-10-04 13:30:17 +02:00
shortcutme
8e2be5cfe2
Add Merkletools package for bigfile plugin 2017-10-04 13:29:32 +02:00
shortcutme
f7ce401564
Function to remove invalid characters from file path 2017-10-04 13:25:07 +02:00
shortcutme
5dbaf02e33
Add content.json location to getFileInfo 2017-10-04 13:24:44 +02:00
shortcutme
2ef537ee6c
Fox user_address detection for sub-directories in user directory 2017-10-04 13:24:22 +02:00
shortcutme
74048ce53f
Update site size on startup and file archival 2017-10-04 13:20:39 +02:00
shortcutme
96ceb253e8
GetTotal size also return optional sum of optional file sizes 2017-10-04 13:19:19 +02:00
shortcutme
6e55c8b7c7
Allow ranged SQL queries 2017-10-04 13:10:41 +02:00
shortcutme
38c663ee95
Use WHERE 1 for queries without argument 2017-10-04 13:10:26 +02:00
shortcutme
ca473d6c3b
Allow plugins on ContentManager 2017-10-04 12:51:37 +02:00
shortcutme
36b74e1c6a
ContentManager logging improvements 2017-10-04 12:51:24 +02:00
shortcutme
8e3e96fe65
Create storage object after site settings loaded 2017-10-04 12:50:24 +02:00
shortcutme
0f0f3894ff
request from directory . should drop forbidden error 2017-10-04 12:48:48 +02:00
shortcutme
a2182e8a8d
Invalid nonce requests automatically shows wrapper now 2017-10-04 12:48:16 +02:00
shortcutme
4042de460e
actionFile allows file details to be passed as parameter 2017-10-04 12:46:06 +02:00
shortcutme
0dd34403a2
Combinate isfile and filesize query to one function 2017-10-04 12:44:34 +02:00
shortcutme
edb9d3f719
Media files requested from non-seeded site not wokring anymore 2017-10-04 12:42:05 +02:00
shortcutme
1f5db0aa24
Nonce checking moved to route command 2017-10-04 12:41:14 +02:00
shortcutme
74b2408668
Move path checking to parsePath 2017-10-04 12:39:08 +02:00
shortcutme
f53612bef7
Media request should start with normal characters 2017-10-04 12:38:44 +02:00
shortcutme
4d991cda6d
Also serve htm files with wrapper 2017-10-04 12:37:56 +02:00
shortcutme
6984575901
Remove dead reload code 2017-10-04 12:37:34 +02:00
shortcutme
75b44f6980
Raise SecurityError on invalid path 2017-10-04 12:37:22 +02:00
shortcutme
3c46f60042
Show wrapper automatically if wrapper nonce is invalid 2017-10-04 12:35:15 +02:00
shortcutme
7dbc323f76
ZeroNet-internal virtual path on UiServer for internal commands 2017-10-04 12:33:43 +02:00