1
0
Commit Graph

364 Commits

Author SHA1 Message Date
532e8d9da6
Code for determining of network type was moved to HttpServer's Start() func. 2023-08-06 01:26:41 +04:00
72d3104150
Explicit check for address type, now check if an addr passed is IPv6. Otherwise, network var will remain empty. 2023-08-06 01:21:14 +04:00
5bd6120ae5
In var () section removed unnecessary type declarations. 2023-08-06 01:18:41 +04:00
d919d00cc0
In dwelling-upload-clean converted an expiry var to time.Duration. Added an 'h' unit in a .service to represent hours. 2023-08-05 19:28:05 +04:00
1e30e5e8ff
Removed unnecessary .center class from sections. | replaced by p.center for space left. 2023-08-05 06:51:39 +04:00
c486acef79
Moved available space next to an Upload button. 2023-08-05 06:34:21 +04:00
aaa6aca743
Removing -buildmode=pie flag, it causes permission denied 203/EXEC failure when starting a service. 2023-08-05 06:27:48 +04:00
d251d174e3
Added a set of export CGO_*FLAGS statements recommended in https://wiki.archlinux.org/title/Go_package_guidelines 2023-08-05 06:02:54 +04:00
82915fb300
Added some necessary flags for go build. 2023-08-05 06:01:10 +04:00
e7e45259ba
Oh, in os.Stat() path.Join() is needed, since DirEntry.Name() contains only name of a file itself, not a full path. 2023-08-05 05:07:59 +04:00
df8baf153b
Replaced deprecated ioutil.ReadDir() with os.ReadDir() + os.Stat() in filesize.go. 2023-08-05 05:03:34 +04:00
b513a5ff1d
Found that in an Error() func status code wasn't set. Fixed that. 2023-08-05 04:54:52 +04:00
c2278fdd2e
A little refactoring in handlers.go. 2023-08-05 04:46:25 +04:00
df3c5e0678
Oops, use Error() func instead of direct call of ErrorXXX(). 2023-08-05 04:26:11 +04:00
266cf9dbb0
Removed nospace.jade. Replaced by errorXXX.jade. 2023-08-05 04:22:27 +04:00
6b56037ded
Updated httpr dependency. 2023-08-05 04:17:17 +04:00
9e20c424be
Version was set to 23.31.0. 2023-08-01 16:52:08 +04:00
d77552049a
In PKGBUILD build() removed spaces between lines. 2023-08-01 16:51:30 +04:00
59e0629597
On index page only available storage is shown. 2023-08-01 16:50:39 +04:00
6b8a7dffc7
In .service files flags was replaced by the new ones. 2023-08-01 16:46:50 +04:00
084872be61
Returned Onion-Location header, and removed a separate I2P listen statement. 2023-08-01 16:44:30 +04:00
5590b0ad71
In upload service flags was renamed. 2023-08-01 16:43:41 +04:00
e430f0bfc9
ioutil package is deprecated, so its ReadDir() was replaced by os. ReadDir() and os.Stat(). Also fixed existing error messages a little. 2023-08-01 16:42:39 +04:00
1c7f03053f
In clean service: args are renamed: upload-dir -> dir, keep-for -> expiry. 2023-08-01 16:40:31 +04:00
7e4af6b977
Version was changed to 23.24.0. 2023-06-12 23:10:14 +04:00
5c6cf2586f
Removed Privacy statements section and added a link to it on a main site. 2023-06-12 23:09:03 +04:00
9c72131dc8
Version patch part increased to 3. Nothing changed but a version of used httpr router. 2023-05-28 04:23:32 +04:00
d81a29bd5b
Removed no more needed func AssetsFS. 2023-05-28 04:18:50 +04:00
d5052994b8
Updated httpr to v0.2.0. 2023-05-28 04:14:48 +04:00
2d4169245c
Reorginised the main()'s code a little. 2023-05-27 19:51:29 +04:00
949c2e68c8
Patch part of version was incremented. 2023-05-27 19:39:18 +04:00
3799c1d178
Fixed a comment in dwelling-upload.service. 2023-05-27 19:36:30 +04:00
99adb7fbf8
Made max. size and hours bold. 2023-05-27 19:33:02 +04:00
aa3ca9a4ad
Free space section was renamed to more logical occupied space. 2023-05-27 19:32:44 +04:00
96fd7e5883
Added links that lead to index page of a service in errorXXX and nospace templates. 2023-05-27 19:31:52 +04:00
31f84721ad
Status 204 prevents a Deleted page rendering. 2023-05-27 19:31:11 +04:00
e695becbcd
Actually, ParseAddrPort is needed, since we give ip:port. 2023-05-27 19:30:28 +04:00
114d3cc931
Oh, with ioutil.ReadDir subtracting of 4096 isn't needed. 2023-05-26 22:41:48 +04:00
9a889e746a
Saved 2 lines by deferring each of two calls instead of wrapping in an anonymous func.
Also, removed old cURL handling in an Upload handler.
2023-05-26 22:17:03 +04:00
345869608e
ParseAddrPort replaced with ParseAddr. Removed !ap.IsValid() since it is already done in ParseAddr. Also there is no need to additionally check if an address is IPv6. If address is neither v4 or v6, then ParseAddr will return an error. 2023-05-26 17:25:36 +04:00
d94030a4e8
In ConvertFileSize code was cosmetically changed a little. 2023-05-26 17:23:09 +04:00
54f87951c1
In DirectorySize() filepath.Walk was replaced by ioutil.ReadDir to shorten the code. 2023-05-26 17:22:21 +04:00
da001dbe39
To decrease nesting go directive was removed. 2023-05-26 17:21:13 +04:00
51494e87be
Patch version part was incremented. 2023-05-26 13:01:49 +04:00
92710f7f5a
Cosmetic changes in flags. 2023-05-26 13:01:15 +04:00
2abf5a9d7f
Fixed default upload dir path in progs as well. 2023-05-26 12:51:32 +04:00
860d719cdd
Fixed a typo in upload dir path. 2023-05-26 12:49:18 +04:00
30513b3300
Removed go:generate for error404.jade. 2023-05-26 04:40:58 +04:00
b695d8128d
Removed disallow of /f/ from robots.txt. 2023-05-26 04:38:14 +04:00
85f853f48e
Removed /f/ path part in upload handler. 2023-05-26 04:37:07 +04:00