Commit Graph

205 Commits

Author SHA1 Message Date
Tamas Kocsis 85790f8866 Check sites on ip change 2020-09-21 18:20:49 +02:00
Tamas Kocsis fde3b51129 Formatting 2020-09-18 18:44:42 +02:00
Tamas Kocsis 550d02d473 Retry site update if it was failed last time 2020-09-18 18:44:28 +02:00
shortcutme ddbd5c7b19
Fix reset file server port with config web interface 2020-06-30 17:04:09 +02:00
shortcutme 32b0153d34
Log site address with getfile error 2019-12-31 12:46:01 +01:00
shortcutme 50bbe47bf2
Better logging on file update 2019-12-19 02:17:00 +01:00
shortcutme c14e722303
Fix bug that someomes blocked plugins accessing connectionserver sitelist 2019-11-25 14:34:46 +01:00
shortcutme d7db631b95
Shut down UiServer if FileServer startup failed 2019-09-19 16:33:45 +02:00
shortcutme 7d1ca3862d
Make missing IPv6 a warning not an error 2019-08-18 03:02:30 +02:00
shortcutme eeef6fe65f
Rev4102, Fix fileGet test 2019-06-06 03:17:42 +02:00
shortcutme d596f28f46
Log non-file read errors on fileGet 2019-06-06 02:27:35 +02:00
shortcutme 4222c31b3e
Don't push body of content.json with updates if larger than 10kb 2019-05-30 04:26:41 +02:00
shortcutme 879b522914
Disable portcheck in offline mode 2019-04-15 15:16:38 +02:00
shortcutme 998ec3eb4f
Disable all site serving using a global offline argument 2019-04-15 15:06:25 +02:00
redfish 941571f71f file: set error message before using it
Fixes this exception:

Unhandled exception: [(<class 'UnboundLocalError'>,
UnboundLocalError("local variable 'err' referenced before assignm>
 Traceback (most recent call last):
   File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
   File "/opt/zeronet/src/util/RateLimit.py", line 57, in <lambda>
     thread = gevent.spawn_later(time_left, lambda: callQueue(event))  # Call this function later
   File "/opt/zeronet/src/util/RateLimit.py", line 42, in callQueue
     return func(*args, **kwargs)
   File "/opt/zeronet/src/File/FileRequest.py", line 185, in actionUpdate
     self.response({"error": "File invalid: %s" % err})
UnboundLocalError: local variable 'err' referenced before assignment
2019-03-31 16:25:26 -04:00
shortcutme 77530f13ee
Fix content.json update and verify on Python 3.5 2019-03-20 00:48:51 +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 b0b9a4d33c
Change to Python3 coding style 2019-03-15 21:06:59 +01:00
shortcutme 46fb61c68c
Consider port opened if we have external ip on the interface 2019-01-30 14:58:11 +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 4631f2223b
Add public ips from local adapters to external ip list 2019-01-29 02:59:15 +01:00
shortcutme f706f7508e
Store detected external ips to separate variable 2019-01-26 20:42:27 +01:00
shortcutme de41efbaf8
Rev3818, Fix peerPing cli command 2019-01-26 03:13:47 +01:00
shortcutme 6460b7b0a1
Parse ip_external on portCheck function call 2019-01-25 01:23:46 +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 e8dbf1511b
More clean way to return locally found hash_ids for findHashId 2019-01-24 15:18:12 +01:00
shortcutme 4d60c61512
Rev3808, Use cjdns compatible ipv6 address to test route 2019-01-23 14:21:25 +01:00
shortcutme 1824363f86
Support dual stack listening 2019-01-23 02:13:13 +01:00
shortcutme 439d2bcf7f
Remove unused setIpExternal funtcion 2019-01-23 02:11:59 +01:00
shortcutme 447f5fd5c8
Store opened port status per IP version 2019-01-23 02:11:31 +01:00
shortcutme 1350096545
Support ipv6 for Checkport request 2019-01-20 16:23:53 +01:00
shortcutme 18b9df62e4
Support ipv6 in findHashIds request 2019-01-20 16:23:37 +01:00
shortcutme 42495a9914
Support ipv6 in Pex request 2019-01-20 16:22:32 +01:00
shortcutme c7a468eb14
Bind file server to ipv6 interfaces according to fileserver_ip_type config value 2019-01-20 03:15:21 +01:00
shortcutme 1c5b5e3621
Move port checking to separate file, add ipv6 port check 2019-01-20 03:13:54 +01:00
shortcutme eecc257822
Make unknown site request a bad action everywhere 2018-11-26 00:12:54 +01:00
shortcutme 035d70cf57
Spawn site announce to new async line 2018-10-30 04:44:43 +01:00
shortcutme 8c76e258d7
Give 10 second timeout for reannounce 2018-10-30 04:43:58 +01:00
shortcutme b96559b76f
Reduce connection requirements on startup 2018-08-29 19:55:04 +02:00
shortcutme 3a9ded9315
On startup don't run more than 5 checkSite at the same time 2018-08-29 19:54:31 +02:00
shortcutme 7738e6a381
Fix tracker annonce sleeping formatting 2018-08-26 02:53:15 +02:00
shortcutme 0f567385a8
Only check size on file request for smaller files 2018-07-16 01:35:35 +02:00
shortcutme 7e8a93e974
Load trackers files in announceSites loop 2018-07-10 03:32:37 +02:00
shortcutme 8b09a02028
Start ConnectinServer before loading site list 2018-04-29 13:04:38 +02:00
shortcutme 3f6b8def05
Move ConnectionServer listen to separate function to allow TorManager start before connections 2018-04-29 02:44:46 +02:00
shortcutme c0101933bd
Call pex announce from announcer class 2018-04-28 21:54:03 +02:00
shortcutme d4a1764d20
Rev3408, Use fixed 15441 port in tor always mode 2018-04-06 18:18:10 +02:00