Commit Graph

15 Commits

Author SHA1 Message Date
nervuri cfcbbb0962 add proper read & write timeouts 2023-03-11 20:44:39 +00:00
nervuri 0a124def84 explicitly make minimum TLS version = 1.0 2023-03-11 20:44:39 +00:00
nervuri 2eedb5537f add comments to explain prefixConn
Also change a few variable names, for clarification.
2023-03-11 15:16:42 +00:00
nervuri 72b3259428 move HTML and gemtext to separate files 2023-03-11 12:48:41 +00:00
nervuri c611d46b4f output errors to stderr 2023-03-11 12:00:39 +00:00
nervuri 0f48c7479f improve drop root code and move it to a separate file 2023-02-15 14:44:59 +00:00
nervuri 8cf7b02e1b improve drop root code; remove reliance on C 2023-01-31 15:28:48 +00:00
nervuri a37d9a5198 clarify peek() code 2022-06-12 00:00:00 +00:00
nervuri 3e8d967595 add http/1.1 for ALPN 2022-06-04 00:00:00 +00:00
nervuri e896674f39 check record type; reject non-TLS connections 2022-06-04 00:00:00 +00:00
nervuri dc53b5fa76 extract gmt_unix_time from client random 2022-05-27 00:00:00 +00:00
nervuri 0092ed6dd0 add author line 2022-05-26 00:00:00 +00:00
nervuri 539f7ff19d go fmt 2022-05-26 00:00:00 +00:00
nervuri 132b6d2e12 add drop root capability and -u <user> option
Drop root code by Jon Jenkins:
https://stackoverflow.com/a/48991783
2022-05-26 00:00:00 +00:00
nervuri cc1d35c4ae init 2022-05-22 00:00:00 +00:00