Commit Graph

1603 Commits

Author SHA1 Message Date
shortcutme 3561ddf7d3
Do check needConnection for evey site after startup to have up to date protected ip list 2018-03-14 22:31:21 +01:00
shortcutme 81e96d25ba
Handle request using global onion address 2018-03-14 22:30:08 +01:00
shortcutme 1ad966bd80
In passive mode if we have send onion address for every connection not just for tor network 2018-03-14 22:29:00 +01:00
shortcutme 4f472982da
Use broken ssl ip list instead of peer_id 2018-03-14 22:26:59 +01:00
shortcutme f1396b65b9
Blacklist myself on peer id match 2018-03-14 22:26:08 +01:00
shortcutme ba12489c34
Log my and remote handshake 2018-03-14 22:25:53 +01:00
shortcutme 4586d3be78
Send my local time as int in the handshake 2018-03-14 22:25:27 +01:00
shortcutme 2204e0cf9c
Fix message parsing after data left in unpacker 2018-03-14 22:24:38 +01:00
shortcutme 8787774764
Use implicit ssl for connections 2018-03-14 22:24:06 +01:00
shortcutme feb00d5b8a
Option to force encryption to all outgoing connection 2018-03-14 22:22:45 +01:00
shortcutme 1189c76691
Add existing bigfiles to piecefield if they were downloaded outside of ZeroNet 2018-03-14 22:21:45 +01:00
shortcutme fbc10b8e32
Rev3356 2018-03-10 02:06:09 +01:00
shortcutme 511731f0b4
Add current timestamp to handshake for future time consensus feature 2018-03-10 02:04:14 +01:00
shortcutme 738fd1a09b
Rev3354, Fix ajax loading files from archives 2018-03-09 15:01:45 +01:00
shortcutme 645249afa9
Rev3353, Pass arguments of storage walk, Email notify of build fail 2018-03-08 14:27:40 +01:00
shortcutme a51d794885
Rev3352 2018-03-08 14:20:18 +01:00
shortcutme 7048987157
Rev3351, Fix sites with utf8 title 2018-03-07 10:23:13 +01:00
shortcutme e03731fd24
Allow html formatting in wrapper prompt display 2018-03-07 03:10:13 +01:00
shortcutme 7097859b79
Rev3350 2018-03-06 12:09:54 +01:00
shortcutme e87df8a57a
NOSANDBOX is as dangerous as ADMIN command 2018-03-06 12:09:39 +01:00
shortcutme 982fb27f58
Close notification on input enter 2018-03-06 12:07:07 +01:00
shortcutme 16efba2b91
Merge wrapper js 2018-03-06 12:03:10 +01:00
shortcutme e93b5c3c1c
Create wrapper html tags based on attributes instead of raw html 2018-03-06 12:02:39 +01:00
shortcutme 9dabd1f344
Wrapper escape apos characters 2018-03-06 12:01:39 +01:00
shortcutme e96dd14e0d
Display wrapper security errors and fix Firefox navigation blank pages 2018-03-06 12:01:21 +01:00
shortcutme 3e970df09b
Simple replace wrapper template variables instead of python formatting to allow use braces 2018-03-06 12:00:30 +01:00
shortcutme b0a8c4d278
Change http headers from list to dict 2018-03-06 11:58:56 +01:00
shortcutme 4c7013644f
Rev3340 2018-02-27 02:49:04 +01:00
shortcutme bca5d8a6c5
Use msgpack pip package everywhere 2018-02-27 02:48:15 +01:00
shortcutme af57083afd
Handle ip change on onion connection correctly 2018-02-27 02:46:56 +01:00
shortcutme f10233a0a6
New msgpack compatible stream handling 2018-02-27 02:46:26 +01:00
shortcutme 357fd895bf
Add msgpack test 2018-02-23 15:44:07 +01:00
shortcutme bda31aea59
Rev3337, Fix big site download button 2018-02-22 23:34:18 +01:00
shortcutme dea669ac26
Rev3335 2018-02-21 03:15:16 +01:00
shortcutme 40693471e9
Merge sidebar and wrapper js 2018-02-21 03:15:04 +01:00
shortcutme b57a9f5c58
Make cert selection compatible with wrapper modifications 2018-02-21 03:13:27 +01:00
shortcutme 6afe2dd720
New NOSANDBOX permission to remove sandboxed iframe restrictions 2018-02-21 03:12:51 +01:00
shortcutme aef3ecc3f2
Stop page load if opener is present 2018-02-21 03:11:50 +01:00
shortcutme 01ce86ce18
Don't display permission request if site already has 2018-02-21 03:10:23 +01:00
shortcutme 99362c78bf
Move handleMessage to separate function 2018-02-21 03:09:48 +01:00
shortcutme c0bf9a9a76
Add cmd function to Wrapper 2018-02-21 03:09:36 +01:00
shortcutme 1833b3e89f
Remove logging injected html 2018-02-21 03:09:01 +01:00
shortcutme 6b71f91775
Verify mouse and keyboard events to avoid non-user verification on notification prompts 2018-02-21 03:08:52 +01:00
shortcutme 5275988f37
Move isProxyRequest and gotoSite to minimal ZeroFrame wrapper 2018-02-21 03:06:48 +01:00
shortcutme 93162beaa0
Allow to set get parameter to reload 2018-02-21 03:06:21 +01:00
shortcutme 61699c7477
Allow small tag in messages 2018-02-21 03:05:11 +01:00
shortcutme a1a2434d98
Rename wrapper onLoad to onPageLoad 2018-02-21 03:05:02 +01:00
shortcutme fd56ddaa54
Remove wrapper object reference before loading iframe to enhance security 2018-02-21 03:03:01 +01:00
shortcutme c438b9f8a5
Create a restricted ZeroFrame wrapper 2018-02-21 03:02:00 +01:00
shortcutme 3d0a20452f
Fix site archived download test 2018-02-20 10:18:35 +01:00
shortcutme c5b8495477
Rev3329 2018-02-18 05:49:35 +01:00
shortcutme 62ecc1cbc1
Rename Unique to site to No certificate 2018-02-18 05:46:49 +01:00
shortcutme cd822156c9
Rev3328, Fix CLI siteDownload, siteAnnounce, siteNeedFile commands 2018-02-13 13:18:40 +01:00
shortcutme e85c5e3b36
Rev3327, Add compatbility with new msgpack version 2018-02-13 01:35:21 +01:00
shortcutme 02ab6d8f59
Rev3326 2018-02-12 17:07:50 +01:00
shortcutme a548426c39
Formatting 2018-02-12 17:06:36 +01:00
shortcutme 5f851c7880
Maximum 10 findhash in one round 2018-02-12 17:06:18 +01:00
shortcutme f91e264889
Only try peers that is not working currently 2018-02-12 17:05:58 +01:00
shortcutme 514f8396b7
Add missing import for port checking 2018-02-12 17:05:20 +01:00
shortcutme c39ff89fab
Read only what we need 2018-02-12 14:28:45 +01:00
shortcutme 3f19f64efd
Properly recover extra data from unpacker 2018-02-12 14:27:38 +01:00
shortcutme 39366bfbf1
Rev3323, Fix bigfile download to non-existent directory 2018-02-11 01:48:17 +01:00
shortcutme 56f057143e
Rev3321 2018-02-10 15:34:01 +01:00
shortcutme 39568737dd
Tor connect error and uPnP punch error are not critical 2018-02-10 15:33:54 +01:00
shortcutme 13e0d9b306
Configurable file logging level 2018-02-10 15:32:13 +01:00
shortcutme d6b7159db1
Rev3319 2018-02-10 01:09:16 +01:00
shortcutme 2575476086
Some trackers does not accept port 0, so we send port 1 as not-connectable 2018-02-10 01:08:31 +01:00
shortcutme 211d68f590
Only parse dict result from udp tracker 2018-02-10 01:08:20 +01:00
shortcutme 3e51b888cb
Add left bytes to request to improve tracker compatibility 2018-02-10 01:04:23 +01:00
shortcutme ff8f41c1eb
Request less peers in update mode 2018-02-10 01:03:49 +01:00
shortcutme c6fd61ddf3
Don't display warnings if not in debug mode 2018-02-10 01:01:15 +01:00
shortcutme 9ca4b823bb
Add tracker countries 2018-02-10 01:00:50 +01:00
shortcutme f513737628
Change to more reliable trackers 2018-02-10 01:00:35 +01:00
shortcutme 47db295088
Rev3318 2018-02-09 17:47:58 +01:00
shortcutme 3028a8ebc9
Rev3313, Remove local announcer binding to ip to make test pass on linux 2018-02-09 14:15:43 +01:00
shortcutme 644f65b5e4
Version 0.6.2, Rev3312 2018-02-09 11:42:44 +01:00
shortcutme 9f35efc31d
Revert "Version 0.6.2, Rev3310"
This reverts commit 98c6add637.
2018-02-09 11:39:36 +01:00
shortcutme 98c6add637
Version 0.6.2, Rev3310 2018-02-08 18:16:50 +01:00
shortcutme ae0a78dfb1
Message from local peer does not means internet connection 2018-02-08 18:12:08 +01:00
shortcutme 1ad021ffa9
Fix comment formatting 2018-02-08 18:11:56 +01:00
shortcutme ee6ab8e82a
Store site manager to file server 2018-02-08 18:11:45 +01:00
shortcutme b56c985a63
FileServer accept plugins 2018-02-08 18:09:57 +01:00
shortcutme abbf6ae2c8
Fix peer added count 2018-02-08 18:08:08 +01:00
shortcutme 403ec56ef8
Remove from recent peers of peer remove 2018-02-08 18:07:09 +01:00
shortcutme a6e67fa9c3
Generalized tracker result log format for pex 2018-02-08 18:06:45 +01:00
shortcutme b6a401d697
Get loading status based on property 2018-02-08 18:06:19 +01:00
shortcutme 23be1d18a4
Store site list change time 2018-02-08 18:05:50 +01:00
shortcutme d721d459eb
Sites always a dict to keep the reference 2018-02-08 18:05:23 +01:00
shortcutme e1dd0f0979
Only recover sites from sites.json that had peers 2018-02-08 18:04:41 +01:00
shortcutme 866947c445
Fix symlinked data site deletion 2018-02-08 18:03:55 +01:00
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