Commit graph

2262 commits

Author SHA1 Message Date
shortcutme
b814a633c6
Don't reset broken ssl client list on cleanup 2019-03-29 02:28:46 +01:00
shortcutme
73524d70dc
Switch back to default log file naming because of broken rotate file deleting 2019-03-29 02:28:03 +01:00
shortcutme
41cd7da5bd
Rev4026 2019-03-27 03:13:14 +01:00
shortcutme
3d975fd767
Fix libeay32.dll location 2019-03-27 03:12:21 +01:00
shortcutme
f8f857c820
Fix atomicWrite non existing tmpold removal 2019-03-27 03:12:02 +01:00
shortcutme
9546ed0bb6
Try to connect to tor before starting own one under windows 2019-03-27 03:11:38 +01:00
shortcutme
a3f957427f
Make sure the test went without unnecessary reconnects 2019-03-27 03:10:58 +01:00
shortcutme
9b36c55422
Fix pytest warning 2019-03-27 03:10:29 +01:00
shortcutme
b6286372fb
Better cleanup after tests 2019-03-27 03:10:21 +01:00
shortcutme
74e71a1971
Fix http tracker announce compatibility 2019-03-27 03:09:47 +01:00
shortcutme
9050f1a039
Show crypto cipher on peerPing command 2019-03-27 03:09:28 +01:00
shortcutme
de303bf453
Modern crypto ciphers 2019-03-27 03:09:09 +01:00
shortcutme
3d8d3a9237
Randomize SSL subject (merged ValdikSS's commit) 2019-03-27 03:08:37 +01:00
shortcutme
cf354d59fb
Fix incoming connection implicit crypt 2019-03-27 03:06:46 +01:00
shortcutme
63e405c27e
Rev4022 2019-03-23 03:42:26 +01:00
shortcutme
33e8c6fb73
Fix ipv6 port checker 2019-03-23 03:41:52 +01:00
shortcutme
faba28dd94
Proper handle of sigterm signal, log reason of shutdown 2019-03-23 03:41:42 +01:00
shortcutme
a82ee338ef
Rev4017, Fix Bigfile test, Python 3.4 compatibility 2019-03-21 02:48:21 +01:00
shortcutme
60405bf222
Rev4016, Add ad test Python 3.4 compatibility 2019-03-21 02:22:22 +01:00
shortcutme
32329c1817
Rev4015 2019-03-20 01:06:56 +01:00
shortcutme
4aee7a6c61
Make openLocked always return BlockingIOError on fail 2019-03-20 01:05:52 +01:00
shortcutme
e6c2937c1b
Rev4014 2019-03-20 00:50:44 +01:00
shortcutme
8c52038671
Switch to WAL mode as it's faster on older sqlite 2019-03-20 00:49:51 +01:00
shortcutme
7aff97b6ff
Fix loading json files to db on Python 3.5 2019-03-20 00:49:27 +01:00
shortcutme
77530f13ee
Fix content.json update and verify on Python 3.5 2019-03-20 00:48:51 +01:00
shortcutme
0a1c22530a
More clear paramter name for verify 2019-03-20 00:48:09 +01:00
shortcutme
e6c0fe0370
OpenSSL config file to lib dir 2019-03-20 00:47:43 +01:00
shortcutme
63ba0a5551
Fix tests on Python 3.5 2019-03-20 00:46:57 +01:00
shortcutme
c7bfe0d537
Fix Upnp test 2019-03-20 00:46:16 +01:00
0polar
de91f7ec15
Fix "no module" error
Since added into pip requirements.txt, no need to `from...`
2019-03-19 20:36:26 +08:00
shortcutme
ad1bd045f7
Rev4011 2019-03-18 03:38:11 +01:00
shortcutme
c88152cac2
Use shared cursor where possible 2019-03-18 03:36:44 +01:00
shortcutme
61c72ac3ea
Fix SQLite concurrency errors 2019-03-18 03:36:12 +01:00
shortcutme
84c39f3baa
Less sensitive db progress handler 2019-03-18 03:33:51 +01:00
shortcutme
7d6ef195fd
Don't allow to run db on different thread 2019-03-18 03:33:28 +01:00
shortcutme
52ac972332
Keep need commit status if commit failed 2019-03-18 03:33:06 +01:00
shortcutme
9aa599f9d2
Close and commit all db at exit 2019-03-18 03:32:42 +01:00
shortcutme
a5ce7e5a1f
Rev4006 2019-03-18 01:08:35 +01:00
shortcutme
cfdc6bac7b
Remove test lock files after test 2019-03-18 01:08:02 +01:00
shortcutme
33e4c088b9
Upnp opening function return success value 2019-03-18 01:07:46 +01:00
shortcutme
a620bf2174
Fix lang html variable on config page 2019-03-18 01:06:45 +01:00
shortcutme
82c55ba038
Rev4003, Fix peer sorting if no ping delay yet 2019-03-16 04:57:59 +01:00
shortcutme
9f99fa8edc
Remove not working tracker 2019-03-16 04:26:59 +01:00
shortcutme
6e5bf5fef6
Decode masgpack hash key values as byte 2019-03-16 04:22:49 +01:00
shortcutme
c7b4e28f82
Version 0.7.0, Rev4001 2019-03-16 03:53:37 +01:00
shortcutme
f3a4b9c709
Fix announce py3 compatibility 2019-03-16 03:43:11 +01:00
shortcutme
ea638dd0e0
Fix Noparallel test on slower machines 2019-03-16 03:02:59 +01:00
shortcutme
f0b53c4cbb
Add bundled pybitcointools 2019-03-16 03:01:50 +01:00
shortcutme
3eae349a0a
Remove included win_inet_pton, websocket, rsa, socks, pyelliptic, pybitcointools, pyasn1, opensslVerify, merkletools, geventwebsocket, BitcoinECC, bencode module 2019-03-16 02:58:49 +01:00
shortcutme
567855e2d2
TestHelper formatting 2019-03-16 02:49:41 +01:00
shortcutme
955164aa3c
New configuration option to use libsecp256k1 for speedup 2019-03-16 02:45:06 +01:00
shortcutme
db8f9988eb
Use log extension for rolled log file names 2019-03-16 02:44:22 +01:00
shortcutme
9b2cae8e33
Don't log geventwebsocket module debug messages 2019-03-16 02:43:45 +01:00
shortcutme
ac325c5c5e
Py3 compatibility of FileRequest module 2019-03-16 02:43:07 +01:00
shortcutme
e92f3ea100
New watchdog module based file change watching 2019-03-16 02:42:43 +01:00
shortcutme
75d8338f2d
Debug stack formatting include module names 2019-03-16 02:41:09 +01:00
shortcutme
a1b5dad1c8
New Db connection type to avoid corruption 2019-03-16 02:40:32 +01:00
shortcutme
0e2f7fb122
Use global rsa module 2019-03-16 02:39:11 +01:00
shortcutme
ee631730c7
Remove sha1 sum function 2019-03-16 02:38:47 +01:00
shortcutme
f7fd445c73
Test sha sum parameter type properly 2019-03-16 02:38:38 +01:00
shortcutme
5c0fc38272
Remove not used ECC cert generation 2019-03-16 02:37:48 +01:00
shortcutme
6df0321962
Py3 compatibilty of CryptConnection module 2019-03-16 02:37:38 +01:00
shortcutme
65d19d350c
We don't support old style sign verification anymore 2019-03-16 02:36:45 +01:00
shortcutme
bc93796727
Add faster libsecp256k1 support for sign verification, Remove old style signing support, 2019-03-16 02:36:11 +01:00
shortcutme
af49404320
Remove support of old request type 2019-03-16 02:32:10 +01:00
shortcutme
717802860d
Create new unpacker object if client sending new-style, bin-type compatible msgpack streams 2019-03-16 02:31:49 +01:00
shortcutme
edd3f35790
Use new Msgpack library for unpacking 2019-03-16 02:30:54 +01:00
shortcutme
4fe4d0a7e7
BEGIN / END no longer necessary as there is no autocommit in new db module 2019-03-16 02:18:53 +01:00
shortcutme
8ab9b06185
Subtl module py3 compatibility 2019-03-16 02:06:28 +01:00
shortcutme
91c5556f21
Remove old gevent compatibility patches 2019-03-16 02:05:27 +01:00
shortcutme
95cf47d9a4
Test site download with all avaliable crypto lib 2019-03-16 01:01:30 +01:00
shortcutme
dfad2370aa
Test file locking 2019-03-16 01:01:06 +01:00
shortcutme
331e25cc41
Test content rules with all avaliable crypto lib 2019-03-16 01:00:49 +01:00
shortcutme
6dcf7e8088
Remove testing of old signature 2019-03-16 01:00:21 +01:00
shortcutme
99690a6145
Test longer string signing 2019-03-16 00:59:27 +01:00
shortcutme
27bcc3c685
Test sign and verify with all crypto lib avaliable 2019-03-16 00:59:11 +01:00
shortcutme
bb60558968
Test hashing functions 2019-03-16 00:57:50 +01:00
shortcutme
af38a3927a
Test utf8 diffing 2019-03-16 00:57:03 +01:00
shortcutme
bf6771152e
Test backward compatibility to py2 byte-less msgpack unpacker 2019-03-16 00:56:50 +01:00
shortcutme
48b6c81b36
Test msgpack streaming with binary data 2019-03-16 00:56:25 +01:00
shortcutme
d95da7372a
Feed Msgpack unpacker as byte 2019-03-16 00:54:27 +01:00
shortcutme
231037b0fe
Test Msgpack result 2019-03-16 00:54:12 +01:00
shortcutme
c481d20ce8
Use new libs in Msgpack tests 2019-03-16 00:54:00 +01:00
shortcutme
dc32556983
Add utf8 and binary data to msgpack test vector 2019-03-16 00:53:18 +01:00
shortcutme
d7b43f4722
Same priority file download order does not matter 2019-03-16 00:51:32 +01:00
shortcutme
ca29fcec7d
findHashId order does not matter 2019-03-16 00:50:25 +01:00
shortcutme
bd637d661a
Test translate of utf8 strings 2019-03-16 00:49:09 +01:00
shortcutme
ef8174af70
All problematic characters will be escaped 2019-03-16 00:48:56 +01:00
shortcutme
dee562437b
Rename hashfield pack functions to bytes 2019-03-16 00:42:21 +01:00
shortcutme
a1a4a73260
Save sites.json as utf8 2019-03-16 00:41:26 +01:00
shortcutme
627edeb0f2
Py3 support in announce requests 2019-03-16 00:33:12 +01:00
shortcutme
16f29b65f2
Use if in protocol port detection 2019-03-16 00:32:50 +01:00
shortcutme
6d2a863af5
Sleep a bit before creating new file_server to allow connection closing 2019-03-16 00:15:43 +01:00
shortcutme
35e61a0c69
More reliable UiWebsocket testing 2019-03-16 00:15:19 +01:00
shortcutme
c474699695
Different crypto lib fixture 2019-03-16 00:14:58 +01:00
shortcutme
1e2dadf75e
Log test to log/cmd.log 2019-03-16 00:14:11 +01:00
shortcutme
002303a765
Db rebuilding error display, reconnect bug fix 2019-03-16 00:11:52 +01:00
shortcutme
59426c31f7
SiteStorage Py3 compatibility 2019-03-16 00:10:49 +01:00
shortcutme
fd895d0ef5
Tormanager only disconnect if connected 2019-03-16 00:08:04 +01:00
shortcutme
8220272953
Py3 encoding support in TorManager 2019-03-16 00:05:23 +01:00
shortcutme
c8fc1ebefa
Remove tor downloading for windows 2019-03-16 00:04:09 +01:00
shortcutme
ac9531eb98
Use global socks module 2019-03-16 00:03:05 +01:00
shortcutme
56d68ce161
Open translate language file as utf8 2019-03-16 00:02:13 +01:00
shortcutme
a3ef3b34e1
Support multi-line notification 2019-03-16 00:01:52 +01:00
shortcutme
30e348f965
Remove empty line from wrapper template 2019-03-16 00:01:15 +01:00
shortcutme
b981ddadca
Encode error repose to bytes 2019-03-16 00:00:35 +01:00
shortcutme
bcd721e2ef
Always display title if there is content.json file 2019-03-16 00:00:04 +01:00
shortcutme
a96ff8399f
Open template as utf8 file 2019-03-15 23:59:30 +01:00
shortcutme
2f4dec45a6
Decode path as utf8 2019-03-15 23:58:18 +01:00
shortcutme
b216e42397
Fix modified files checking 2019-03-15 23:57:30 +01:00
shortcutme
9b6c624554
Allow cloning if content.json update fails 2019-03-15 23:57:06 +01:00
shortcutme
12154613c2
Write use file as binary 2019-03-15 23:56:16 +01:00
shortcutme
a42dee5a44
unpackOnionAddress Py3 support 2019-03-15 23:55:40 +01:00
shortcutme
d4d86172f0
Cmp function backport and Utf8 to Byte response decorator helper funcations 2019-03-15 23:55:23 +01:00
shortcutme
a49f454826
Lock files in binary mode, with one byte 2019-03-15 23:53:48 +01:00
shortcutme
cd9a965057
atomicWrite Py3 support, full stack logging 2019-03-15 23:50:33 +01:00
shortcutme
f5bc26e9fe
Use binary format for atomicWrite 2019-03-15 23:49:55 +01:00
shortcutme
c55d69d587
Python3 has builtin inet_pton support 2019-03-15 23:49:13 +01:00
shortcutme
e508357cfb
RateLimit py3 support 2019-03-15 23:48:46 +01:00
shortcutme
1c578b2b3f
Remove SSL patches for old Python/Gevent support, patch ctypes find_library to find openssl libs 2019-03-15 23:48:28 +01:00
shortcutme
4ce2ef732d
Rename StreamingMsgpack to Msgpack, add helpers 2019-03-15 23:33:04 +01:00
shortcutme
65705aba10
Fix UpnpPunch py3 compatibility 2019-03-15 23:32:05 +01:00
shortcutme
e97873fb7e
UpnpPunch gets custom logger 2019-03-15 23:31:13 +01:00
shortcutme
13d1df3cef
Only log worker download status if small ammount of task present 2019-03-15 23:30:34 +01:00
shortcutme
7ffb7db888
Add task statistics logging every 15sec 2019-03-15 23:29:04 +01:00
shortcutme
74366379ba
Only log added task in verbose mode 2019-03-15 23:26:33 +01:00
shortcutme
b0b9a4d33c
Change to Python3 coding style 2019-03-15 21:06:59 +01:00
ZeroNet
116347ef66
Merge pull request #1921 from rllola/tracker-announcer
If no port defined in tracker url assume it is port 80
2019-03-10 23:42:07 +01:00
rllola
58516913b4 if protocol https choose port 443 2019-03-10 22:19:37 +01:00
rllola
fb836fcf6f If no port defined in tracker url assume it is port 80; fix #1917 2019-03-09 18:41:50 +01:00
ZeroNet
1ad44ace0a
Merge pull request #1916 from rllola/ld-library-path-openssl
Ld library path openssl
2019-03-06 16:05:54 +01:00
rllola
32ddaed376 Actually at ALL the path in the environnement variable and look for the openssl lib 2019-03-05 18:58:47 +01:00
rllola
4e388e5dc2 Find openssl lib in LD_LIBRARY_PATH 2019-03-05 18:33:29 +01:00
shortcutme
f90d0d2dae
Rev3853 2019-02-24 02:29:35 +01:00
shortcutme
b47920169f
Test unsupported pex peers removing 2019-02-24 02:29:27 +01:00
shortcutme
81bf349871
Remove ipv6 and onion from pex result if not supported 2019-02-24 02:29:08 +01:00
shortcutme
9d849a16ec
Use defaultdict to for findHashId result 2019-02-24 02:28:42 +01:00
shortcutme
174e8d3c19
Rev3852 2019-02-16 23:49:20 +01:00
shortcutme
511a5c0d1f
Nonce based CSP not supported in Safari yet 2019-02-16 23:49:10 +01:00
shortcutme
952a1a1da8
Rev3851, Fix typo with onion address detection 2019-02-16 20:50:49 +01:00
shortcutme
819c2b0bc3
Rev3850 2019-02-14 15:52:30 +01:00
shortcutme
30984c62fa
Change trackers to more reliable ones 2019-02-14 15:52:22 +01:00
shortcutme
bd649cfb33
Remove ui_server allowed http host learning 2019-02-14 15:49:10 +01:00
shortcutme
5c57cd6541
Support https trackers, add browser-like user agent for tracker http requests 2019-02-14 15:48:36 +01:00
shortcutme
523f8dae2a
Rev3846 2019-02-09 13:57:08 +01:00
shortcutme
4e56fe9fc3
Fix sitePublish CLI command if no client is running 2019-02-09 13:56:44 +01:00
shortcutme
2829146598
Merge wrapper js, css 2019-02-09 13:56:21 +01:00
shortcutme
b5ed158cc6
Fix closed display of infopanel if sidebar opened 2019-02-09 13:56:12 +01:00
shortcutme
7314f20563
Set number of changed files for closed infopanel 2019-02-09 13:55:53 +01:00
shortcutme
0559eb1a9a
Rev3844 2019-02-05 15:55:23 +01:00
shortcutme
40f732cd48
Only show modified files notification if site is owned 2019-02-05 15:55:12 +01:00
shortcutme
eb837e3685
Close button for site modified files notification 2019-02-05 15:54:32 +01:00
shortcutme
8ddfbf37c3
New siteSetSettingsValue to change site specific setting 2019-02-05 15:52:01 +01:00
shortcutme
0729ea1c38
Version 0.6.5, Rev3840 2019-02-02 00:13:09 +01:00
shortcutme
39541fe348
Modified site source admin panel 2019-02-02 00:12:50 +01:00
shortcutme
259c5199d6
siteListModifiedFiles admin command 2019-02-02 00:11:47 +01:00
shortcutme
c2b879ccab
Rev3831, Fix Stats page compatibility with latest gevent 2019-01-31 00:39:45 +01:00
shortcutme
8447c6d79f
Rev3829 2019-01-30 14:58:20 +01:00
shortcutme
46fb61c68c
Consider port opened if we have external ip on the interface 2019-01-30 14:58:11 +01:00
shortcutme
860ef650f9
Support IPv6 in Tor always mode by creating ipv4 sockets with ipv6 address 2019-01-30 14:53:33 +01:00
shortcutme
ef6f9b9d70
Don't try to open ports in Tor mode 2019-01-30 14:52:41 +01:00
shortcutme
9f701c8f35
IPv6 supported in tor mode 2019-01-30 14:52:26 +01:00
shortcutme
e18d3d0c93
Only return valid ips from getInterfaceIps 2019-01-30 14:51:45 +01:00
shortcutme
31a7effa5f
Rev3827, Share FileServer between sites for non-main CLI commands 2019-01-29 03:17:24 +01:00
shortcutme
42f3f405ea
Rev3826 2019-01-29 03:04:06 +01:00
shortcutme
1b612f7112
Check master seed length for cryptGetPrivatekey CLI command 2019-01-29 03:03:42 +01:00
shortcutme
6e364ce4b9
Wait until site sync finished before cloning 2019-01-29 03:02:57 +01:00
shortcutme
89eb44f3ef
Spawn port check on separate thread when changing ip_external config value 2019-01-29 03:02:22 +01:00
shortcutme
53364d6ddc
Add 169.254.* to local ips, remove unnecessary brackets 2019-01-29 03:00:06 +01:00
shortcutme
4631f2223b
Add public ips from local adapters to external ip list 2019-01-29 02:59:15 +01:00
shortcutme
20fb9ab97d
Only reload source code on create and change event 2019-01-29 02:57:41 +01:00
shortcutme
dcbac42571
Change unstable tracker 2019-01-29 02:57:18 +01:00
shortcutme
0258d926a2
Fix loading multi-line values from config 2019-01-29 02:54:56 +01:00
shortcutme
ef0c0b1e32
Rev3821 2019-01-26 20:43:04 +01:00
shortcutme
f706f7508e
Store detected external ips to separate variable 2019-01-26 20:42:27 +01:00
shortcutme
6662b4f047
Test sql queries with lots of variables 2019-01-26 20:40:58 +01:00
shortcutme
13c453d610
Embed query values if more than 100 specified 2019-01-26 20:40:34 +01:00
shortcutme
e8026ef074
Non-private external ip for tests 2019-01-26 20:39:31 +01:00
shortcutme
cefc6f8eac
Test private ip match 2019-01-26 20:38:30 +01:00
shortcutme
bf809ac118
Save users.json immedietly after site creation 2019-01-26 20:31:37 +01:00
shortcutme
88ba0c1154
Don't detect cjdns ips as private ips 2019-01-26 20:31:05 +01:00
shortcutme
de41efbaf8
Rev3818, Fix peerPing cli command 2019-01-26 03:13:47 +01:00
shortcutme
276cbc0ace
Rev3817, Support limits for feed search 2019-01-25 14:26:38 +01:00
shortcutme
be36a20249
Rev3815 2019-01-25 01:26:50 +01:00
shortcutme
5173597868
Remove empty lines from multi-line config values 2019-01-25 01:26:39 +01:00
shortcutme
86657529c9
Live update ip_external 2019-01-25 01:24:28 +01:00
shortcutme
6460b7b0a1
Parse ip_external on portCheck function call 2019-01-25 01:23:46 +01:00
shortcutme
3b91be8449
Change ip_external on Config page 2019-01-25 01:22:26 +01:00
ZeroNet
055aea58bb
Merge pull request #1877 from d14na/patch-1
Add support for tilde `~` in filenames.
2019-01-24 15:54:07 +01:00
shortcutme
1914c69c47
Rev3812 2019-01-24 15:20:56 +01:00
shortcutme
fdb06ad973
Cleaner way to record external ips from port checkers 2019-01-24 15:20:37 +01:00
shortcutme
37979b4f9c
Support multiple external ips 2019-01-24 15:20:08 +01:00
shortcutme
0a03c30e8a
findHashId will return real address used by the connection 2019-01-24 15:19:19 +01:00
shortcutme
e8dbf1511b
More clean way to return locally found hash_ids for findHashId 2019-01-24 15:18:12 +01:00
D14na
f163abb4a5
Add support for tilde ~ in filenames.
(source: https://webpack.js.org/guides/code-splitting)

It appears that webpack (bundled w/ the VueJS CLI) will concatenate `chunk` names using the `~` to create one long "bundled" filename. This creates a problem when executing `isValidRelativePath` which DOES NOT allow `~`.

__An example error when signing:__
`Site:1... - [ERROR] Invalid filename: js/about~privacy~search.3c7ce85b.js`

A fix is to use the same name for each file/chunk, but then that breaks the optimizations of code splitting. Is there any reason NOT to permit tilde `~` as a valid filename character? _(NOTE: this may only be an issue if using vue-router)_
2019-01-24 08:41:27 -05:00
tangdou1
76e21a6378
Fix a bug 2019-01-24 10:00:18 +08:00
goofy-mdn
7c6ff85acd
Update fr.json
minor typofix
2019-01-23 15:44:14 +01:00
shortcutme
4d60c61512
Rev3808, Use cjdns compatible ipv6 address to test route 2019-01-23 14:21:25 +01:00
shortcutme
c20ed92fab
Merge branch 'master' of https://github.com/HelloZeroNet/ZeroNet 2019-01-23 02:19:08 +01:00
shortcutme
13f6a8da53
Rev3807 2019-01-23 02:19:04 +01:00