gopherproxy-c, branch HEAD Gopher HTTP proxy in C (CGI) e5016276b57d8cac431d9503c9450cb49f232b18 2025-08-04T12:43:41Z 2025-08-04T12:43:41Z fix typo: DirEntry -> DirEntity (RFC1436) Hiltjo Posthuma hiltjo@codemadness.org commit e5016276b57d8cac431d9503c9450cb49f232b18 parent 2d459eda3db761482486144a07f60a62447fd577 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Mon, 4 Aug 2025 14:43:41 +0200 fix typo: DirEntry -> DirEntity (RFC1436) 2d459eda3db761482486144a07f60a62447fd577 2025-08-04T12:41:32Z 2025-08-04T12:41:53Z increase buffer, fix compiler warning (-Wall) Hiltjo Posthuma hiltjo@codemadness.org commit 2d459eda3db761482486144a07f60a62447fd577 parent 00c13341a4b18c68b1ea0b157c84b840c5f89245 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Mon, 4 Aug 2025 14:41:32 +0200 increase buffer, fix compiler warning (-Wall) 00c13341a4b18c68b1ea0b157c84b840c5f89245 2025-08-04T11:31:21Z 2025-08-04T12:41:53Z servedir: some line reading buffer optimizations Hiltjo Posthuma hiltjo@codemadness.org commit 00c13341a4b18c68b1ea0b157c84b840c5f89245 parent 407a5ede41c92b0b9b711bd376493a579995da36 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Mon, 4 Aug 2025 13:31:21 +0200 servedir: some line reading buffer optimizations 407a5ede41c92b0b9b711bd376493a579995da36 2025-08-03T20:08:02Z 2025-08-03T20:08:23Z add newline after die() message again Hiltjo Posthuma hiltjo@codemadness.org commit 407a5ede41c92b0b9b711bd376493a579995da36 parent b52a2076670c215f88202f0062cbe101b4954055 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 3 Aug 2025 22:08:02 +0200 add newline after die() message again b52a2076670c215f88202f0062cbe101b4954055 2025-08-03T19:59:39Z 2025-08-03T20:01:06Z add initial gopher over TLS support Hiltjo Posthuma hiltjo@codemadness.org commit b52a2076670c215f88202f0062cbe101b4954055 parent f8d0a722a5cb43ef0d208b11dd377ea3b02a8695 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 3 Aug 2025 21:59:39 +0200 add initial gopher over TLS support f8d0a722a5cb43ef0d208b11dd377ea3b02a8695 2025-08-03T19:43:42Z 2025-08-03T19:43:42Z code-style: some whitespace fixes Hiltjo Posthuma hiltjo@codemadness.org commit f8d0a722a5cb43ef0d208b11dd377ea3b02a8695 parent 641a71680cc507faa65a1b2c7384d1e3313119ef Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 3 Aug 2025 21:43:42 +0200 code-style: some whitespace fixes 641a71680cc507faa65a1b2c7384d1e3313119ef 2025-08-03T19:42:08Z 2025-08-03T19:42:08Z inline images: use CSS for max width, do not rescale if the image is smaller Hiltjo Posthuma hiltjo@codemadness.org commit 641a71680cc507faa65a1b2c7384d1e3313119ef parent 7b02f8a438e1b15796383f446d13f2c8c92d8501 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 3 Aug 2025 21:42:08 +0200 inline images: use CSS for max width, do not rescale if the image is smaller Otherwise an image would always get rescaled. 7b02f8a438e1b15796383f446d13f2c8c92d8501 2025-07-09T17:38:19Z 2025-07-09T17:38:19Z nitpick: use <img />, not <img> Hiltjo Posthuma hiltjo@codemadness.org commit 7b02f8a438e1b15796383f446d13f2c8c92d8501 parent 0427e35fbc8ab864a4d8507e3f174165633529f1 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Wed, 9 Jul 2025 19:38:19 +0200 nitpick: use <img />, not <img> 0427e35fbc8ab864a4d8507e3f174165633529f1 2025-07-09T17:35:15Z 2025-07-09T17:35:15Z LICENSE: bump year Hiltjo Posthuma hiltjo@codemadness.org commit 0427e35fbc8ab864a4d8507e3f174165633529f1 parent 4c9fcc17502735ad031ee12215fb441c2c27a42f Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Wed, 9 Jul 2025 19:35:15 +0200 LICENSE: bump year 4c9fcc17502735ad031ee12215fb441c2c27a42f 2025-07-09T17:34:43Z 2025-07-09T17:34:43Z render images inline Hiltjo Posthuma hiltjo@codemadness.org commit 4c9fcc17502735ad031ee12215fb441c2c27a42f parent e96ccc93928250ede30995cff7bf0e11758b2602 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Wed, 9 Jul 2025 19:34:43 +0200 render images inline Patch by kroovy <me@kroovy.de>: gopher://kroovy.de/1/phlog/inline-images-patch.gph With some modifications. e96ccc93928250ede30995cff7bf0e11758b2602 2024-11-13T18:41:56Z 2024-11-13T19:11:16Z Encode characters for 'q' parameter to get passed and parsed correctly Julian Schweinsberg pazz0@0xfa.de commit e96ccc93928250ede30995cff7bf0e11758b2602 parent 21855e485f7a47b90546f9039fec6a4b4f382567 Author: Julian Schweinsberg <pazz0@0xfa.de> Date: Wed, 13 Nov 2024 18:41:56 +0000 Encode characters for 'q' parameter to get passed and parsed correctly Without encoding the characters '&' and '=' they would be interpreted by getparam(), this is not correct because these characters are part of the selector of the gopher URI and shouldn't be interpreted by the gopherproxy but the gopher server. Additionally '#' gets escaped or it wouldn't be passed to the gopherproxy and by this not to the gopher server. The additional characters get URL escaped, so that no xmlenode is needed. For the character '&' gopher://gopherddit.com/1 is a good test case. 21855e485f7a47b90546f9039fec6a4b4f382567 2024-08-03T13:03:47Z 2024-08-03T13:03:47Z support gophers:// by falling back to a plain-text connection (for now) Hiltjo Posthuma hiltjo@codemadness.org commit 21855e485f7a47b90546f9039fec6a4b4f382567 parent ec71ea5200ff67c6c121dca56c8e50772488163c Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 3 Aug 2024 15:03:47 +0200 support gophers:// by falling back to a plain-text connection (for now) ec71ea5200ff67c6c121dca56c8e50772488163c 2024-08-03T13:03:26Z 2024-08-03T13:03:26Z Makefile: improve Makefile, sync from hurl Makefile Hiltjo Posthuma hiltjo@codemadness.org commit ec71ea5200ff67c6c121dca56c8e50772488163c parent 7f0e6929a919fc00a9af4b4858a4d43a89a25e05 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 3 Aug 2024 15:03:26 +0200 Makefile: improve Makefile, sync from hurl Makefile 7f0e6929a919fc00a9af4b4858a4d43a89a25e05 2024-08-03T13:02:57Z 2024-08-03T13:02:57Z LICENSE: bump year Hiltjo Posthuma hiltjo@codemadness.org commit 7f0e6929a919fc00a9af4b4858a4d43a89a25e05 parent 9f2717d76730fa22c7e533a0a42695d6783e3d20 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 3 Aug 2024 15:02:57 +0200 LICENSE: bump year 9f2717d76730fa22c7e533a0a42695d6783e3d20 2023-08-30T19:25:15Z 2023-08-30T19:25:15Z CSS: use dark mode browser UI when in dark mode Hiltjo Posthuma hiltjo@codemadness.org commit 9f2717d76730fa22c7e533a0a42695d6783e3d20 parent 1d29587a28d81e13a3a7f4f3712dd408ce5726e0 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Wed, 30 Aug 2023 21:25:15 +0200 CSS: use dark mode browser UI when in dark mode 1d29587a28d81e13a3a7f4f3712dd408ce5726e0 2023-02-26T15:11:26Z 2023-02-26T15:11:26Z pass query string to the gopher selector too Hiltjo Posthuma hiltjo@codemadness.org commit 1d29587a28d81e13a3a7f4f3712dd408ce5726e0 parent 78efc56f91b0956fe6e2dcc7919a4dcd64dfe66a Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 26 Feb 2023 16:11:26 +0100 pass query string to the gopher selector too This allows path?something which is useful in CGI programs. 78efc56f91b0956fe6e2dcc7919a4dcd64dfe66a 2022-05-16T12:46:40Z 2022-05-16T12:46:40Z print a message if a protocol is not supported Hiltjo Posthuma hiltjo@codemadness.org commit 78efc56f91b0956fe6e2dcc7919a4dcd64dfe66a parent b4fcf2516500e0d3979721cae7d91f430e72fa41 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Mon, 16 May 2022 14:46:40 +0200 print a message if a protocol is not supported This would not trigger because URIs are prefixed with gopher:// otherwise. Reported by parazyd by testing gophers:// which is not supported (yet). b4fcf2516500e0d3979721cae7d91f430e72fa41 2022-03-19T10:51:26Z 2022-03-19T10:51:26Z CSS dark mode: make links blue Hiltjo Posthuma hiltjo@codemadness.org commit b4fcf2516500e0d3979721cae7d91f430e72fa41 parent 838e8638e0f943519b4575b30175eae223483f9d Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 19 Mar 2022 11:51:26 +0100 CSS dark mode: make links blue 838e8638e0f943519b4575b30175eae223483f9d 2022-03-19T10:48:14Z 2022-03-19T10:48:14Z make URI parsing a bit more flexible again + sync some URI parse parts Hiltjo Posthuma hiltjo@codemadness.org commit 838e8638e0f943519b4575b30175eae223483f9d parent e9b0ad3f6eaef101ec93e70846460f9a4127e129 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 19 Mar 2022 11:48:14 +0100 make URI parsing a bit more flexible again + sync some URI parse parts e9b0ad3f6eaef101ec93e70846460f9a4127e129 2022-03-19T10:31:12Z 2022-03-19T10:31:12Z sync URL parsing code Hiltjo Posthuma hiltjo@codemadness.org commit e9b0ad3f6eaef101ec93e70846460f9a4127e129 parent ee13891f6be12921f48b361b571de30442b0f87b Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 19 Mar 2022 11:31:12 +0100 sync URL parsing code ee13891f6be12921f48b361b571de30442b0f87b 2022-03-19T10:31:03Z 2022-03-19T10:31:03Z bump LICENSE year Hiltjo Posthuma hiltjo@codemadness.org commit ee13891f6be12921f48b361b571de30442b0f87b parent e72d2bbbbce501b34da095ba1fc7f2b64e887a3b Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 19 Mar 2022 11:31:03 +0100 bump LICENSE year e72d2bbbbce501b34da095ba1fc7f2b64e887a3b 2022-03-19T10:30:56Z 2022-03-19T10:30:56Z CSS: add dark mode Hiltjo Posthuma hiltjo@codemadness.org commit e72d2bbbbce501b34da095ba1fc7f2b64e887a3b parent 920fc67b93ffe777375e5be476c0da85962040eb Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 19 Mar 2022 11:30:56 +0100 CSS: add dark mode 920fc67b93ffe777375e5be476c0da85962040eb 2019-05-15T17:24:09Z 2019-05-15T17:24:09Z enable pledge by default on OpenBSD Hiltjo Posthuma hiltjo@codemadness.org commit 920fc67b93ffe777375e5be476c0da85962040eb parent 46a7c58d416fe82d8b2d8aed37f9168574e33e46 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Wed, 15 May 2019 19:24:09 +0200 enable pledge by default on OpenBSD it exists since 5.9+ 46a7c58d416fe82d8b2d8aed37f9168574e33e46 2019-05-15T17:20:27Z 2019-05-15T17:20:27Z support + type, thanks pazz0 for the patch Hiltjo Posthuma hiltjo@codemadness.org commit 46a7c58d416fe82d8b2d8aed37f9168574e33e46 parent f4621b7ad329dfb9e68e7ee2527dacd73c8aac33 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Wed, 15 May 2019 19:20:27 +0200 support + type, thanks pazz0 for the patch This supports multiple mirror types. It uses the last non-+ type as described in the RFC. If a + type is specified without a previous type then it is an error. Also allow the + type with 'h', because "why not". f4621b7ad329dfb9e68e7ee2527dacd73c8aac33 2019-05-15T17:05:35Z 2019-05-15T17:05:35Z README: document restrictions Hiltjo Posthuma hiltjo@codemadness.org commit f4621b7ad329dfb9e68e7ee2527dacd73c8aac33 parent 42c1f9f2c86049e667c4037b241bb04492cd36c7 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Wed, 15 May 2019 19:05:35 +0200 README: document restrictions 42c1f9f2c86049e667c4037b241bb04492cd36c7 2019-05-15T17:05:25Z 2019-05-15T17:05:25Z rename dial to edial, reset timeout values before setsockopt Hiltjo Posthuma hiltjo@codemadness.org commit 42c1f9f2c86049e667c4037b241bb04492cd36c7 parent 4e8119f7c820b0898e1c07b41dabe1b8c72318f8 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Wed, 15 May 2019 19:05:25 +0200 rename dial to edial, reset timeout values before setsockopt 4e8119f7c820b0898e1c07b41dabe1b8c72318f8 2018-08-30T19:42:00Z 2018-08-30T19:42:00Z output correct HTML on error when dir handling Hiltjo Posthuma hiltjo@codemadness.org commit 4e8119f7c820b0898e1c07b41dabe1b8c72318f8 parent 84b61467b8eb24067b1d4bcf306edfb65c0e5c3d Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Thu, 30 Aug 2018 21:42:00 +0200 output correct HTML on error when dir handling thanks sdk for noticing and reporting it! 84b61467b8eb24067b1d4bcf306edfb65c0e5c3d 2018-08-30T15:50:55Z 2018-08-30T15:50:55Z README: clarify tor and torsocks use Hiltjo Posthuma hiltjo@codemadness.org commit 84b61467b8eb24067b1d4bcf306edfb65c0e5c3d parent 31bf0e0fa53e34bf32a57257f6e306a67ea813a6 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Thu, 30 Aug 2018 17:50:55 +0200 README: clarify tor and torsocks use 31bf0e0fa53e34bf32a57257f6e306a67ea813a6 2018-08-21T15:43:52Z 2018-08-21T15:43:52Z improve uri parsing according to the RFC spec Hiltjo Posthuma hiltjo@codemadness.org commit 31bf0e0fa53e34bf32a57257f6e306a67ea813a6 parent ab450f6020e7a69eaba6446167ba25b9d296a5d9 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Tue, 21 Aug 2018 17:43:52 +0200 improve uri parsing according to the RFC spec the path doesn't have to start with / ab450f6020e7a69eaba6446167ba25b9d296a5d9 2018-08-19T19:01:21Z 2018-08-19T19:07:40Z README: add instructions for tor proxying trqx@goat.si trqx@goat.si commit ab450f6020e7a69eaba6446167ba25b9d296a5d9 parent 01c9ba076423824ce71944c7af6e0c3f24960ec8 Author: trqx@goat.si <trqx@goat.si> Date: Sun, 19 Aug 2018 21:01:21 +0200 README: add instructions for tor proxying 01c9ba076423824ce71944c7af6e0c3f24960ec8 2018-08-19T17:00:20Z 2018-08-19T18:45:03Z README: add caddy configuration trqx@goat.si trqx@goat.si commit 01c9ba076423824ce71944c7af6e0c3f24960ec8 parent f7929385112388c25324b99525a88df3daba908c Author: trqx@goat.si <trqx@goat.si> Date: Sun, 19 Aug 2018 19:00:20 +0200 README: add caddy configuration f7929385112388c25324b99525a88df3daba908c 2018-08-19T16:55:25Z 2018-08-19T18:43:43Z README: fix typo trqx@goat.si trqx@goat.si commit f7929385112388c25324b99525a88df3daba908c parent 9513ef706fdb1d0fe7ec1c8f6da1fb78ed573f2d Author: trqx@goat.si <trqx@goat.si> Date: Sun, 19 Aug 2018 18:55:25 +0200 README: fix typo 9513ef706fdb1d0fe7ec1c8f6da1fb78ed573f2d 2018-08-17T16:50:11Z 2018-08-17T16:50:11Z README: add CGI configuration examples Hiltjo Posthuma hiltjo@codemadness.org commit 9513ef706fdb1d0fe7ec1c8f6da1fb78ed573f2d parent e21c517078a89ad1023d7ac0c5db8aa5eecab7a9 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 17 Aug 2018 18:50:11 +0200 README: add CGI configuration examples e21c517078a89ad1023d7ac0c5db8aa5eecab7a9 2018-08-17T16:37:32Z 2018-08-17T16:37:32Z minor code-style Hiltjo Posthuma hiltjo@codemadness.org commit e21c517078a89ad1023d7ac0c5db8aa5eecab7a9 parent 9612b7ed97d46f386db7334b7ef880038a92df8c Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 17 Aug 2018 18:37:32 +0200 minor code-style 9612b7ed97d46f386db7334b7ef880038a92df8c 2018-08-17T16:37:09Z 2018-08-17T16:37:09Z parseuri: support IPv6 address for host Hiltjo Posthuma hiltjo@codemadness.org commit 9612b7ed97d46f386db7334b7ef880038a92df8c parent d0cd571a262cbbca3c7d12f08799e6835552bf13 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 17 Aug 2018 18:37:09 +0200 parseuri: support IPv6 address for host d0cd571a262cbbca3c7d12f08799e6835552bf13 2018-08-17T16:36:45Z 2018-08-17T16:36:45Z blacklist path not starting with / and ports other than 70 or 7070 Hiltjo Posthuma hiltjo@codemadness.org commit d0cd571a262cbbca3c7d12f08799e6835552bf13 parent 0c008b2c7e67000e28de30bb3fc85b956a7645e0 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 17 Aug 2018 18:36:45 +0200 blacklist path not starting with / and ports other than 70 or 7070 0c008b2c7e67000e28de30bb3fc85b956a7645e0 2018-08-17T14:08:59Z 2018-08-17T14:08:59Z telnet/tn3270: don't use @ if username is empty Hiltjo Posthuma hiltjo@codemadness.org commit 0c008b2c7e67000e28de30bb3fc85b956a7645e0 parent 9890cde16cba2a03048800bfd81919b0bf9f0e5c Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 17 Aug 2018 16:08:59 +0200 telnet/tn3270: don't use @ if username is empty 9890cde16cba2a03048800bfd81919b0bf9f0e5c 2018-08-17T14:08:52Z 2018-08-17T14:08:52Z README: Gopher+ is not supported Hiltjo Posthuma hiltjo@codemadness.org commit 9890cde16cba2a03048800bfd81919b0bf9f0e5c parent 328eee3a3a6814914911e25e3447adb9cc09f4ba Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 17 Aug 2018 16:08:52 +0200 README: Gopher+ is not supported 328eee3a3a6814914911e25e3447adb9cc09f4ba 2018-08-17T14:01:10Z 2018-08-17T14:01:10Z for the gif type set Content-Type explicitly, try image detection by extension Hiltjo Posthuma hiltjo@codemadness.org commit 328eee3a3a6814914911e25e3447adb9cc09f4ba parent 2188db7bb8e13eb43c8e61376baf0381be3af513 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 17 Aug 2018 16:01:10 +0200 for the gif type set Content-Type explicitly, try image detection by extension 2188db7bb8e13eb43c8e61376baf0381be3af513 2018-08-17T14:00:45Z 2018-08-17T14:00:45Z handle telnet and tn3270 types Hiltjo Posthuma hiltjo@codemadness.org commit 2188db7bb8e13eb43c8e61376baf0381be3af513 parent ba4a6bfff30969bbea9529f7852cd4b929421fbe Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 17 Aug 2018 16:00:45 +0200 handle telnet and tn3270 types ba4a6bfff30969bbea9529f7852cd4b929421fbe 2018-08-17T14:00:07Z 2018-08-17T14:00:07Z display more types as documented in the RFC, distinguish reserved types Hiltjo Posthuma hiltjo@codemadness.org commit ba4a6bfff30969bbea9529f7852cd4b929421fbe parent b8a14c3c0df0a4d9ad6eca8bc772ca0140a0e897 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 17 Aug 2018 16:00:07 +0200 display more types as documented in the RFC, distinguish reserved types b8a14c3c0df0a4d9ad6eca8bc772ca0140a0e897 2018-08-17T13:59:38Z 2018-08-17T13:59:38Z Makefile: when changing Makefile: rebuild Hiltjo Posthuma hiltjo@codemadness.org commit b8a14c3c0df0a4d9ad6eca8bc772ca0140a0e897 parent 1a3a39b35b6a350bec8b37e833639a671717c59e Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 17 Aug 2018 15:59:38 +0200 Makefile: when changing Makefile: rebuild 1a3a39b35b6a350bec8b37e833639a671717c59e 2018-08-17T13:59:20Z 2018-08-17T13:59:20Z Makefile: build static by default Hiltjo Posthuma hiltjo@codemadness.org commit 1a3a39b35b6a350bec8b37e833639a671717c59e parent 63d1799106c7f186d008b3085f1d6059c99b2681 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 17 Aug 2018 15:59:20 +0200 Makefile: build static by default 63d1799106c7f186d008b3085f1d6059c99b2681 2018-08-17T13:58:26Z 2018-08-17T13:58:26Z README: update and document workaround for a bug with nginx 1.12 Hiltjo Posthuma hiltjo@codemadness.org commit 63d1799106c7f186d008b3085f1d6059c99b2681 parent 2922b5f38556aacf5dd1c6928b34be60a07cec7b Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 17 Aug 2018 15:58:26 +0200 README: update and document workaround for a bug with nginx 1.12 2922b5f38556aacf5dd1c6928b34be60a07cec7b 2018-08-17T10:50:40Z 2018-08-17T10:50:40Z fix: initialize uri also when query is empty Hiltjo Posthuma hiltjo@codemadness.org commit 2922b5f38556aacf5dd1c6928b34be60a07cec7b parent 37d95c874eab8ad35bd95ad3381405310934cd08 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 17 Aug 2018 12:50:40 +0200 fix: initialize uri also when query is empty + minor code-style. 37d95c874eab8ad35bd95ad3381405310934cd08 2018-08-14T12:23:31Z 2018-08-14T12:23:31Z dial error: add newline Hiltjo Posthuma hiltjo@codemadness.org commit 37d95c874eab8ad35bd95ad3381405310934cd08 parent dbe80c7d9f93688585348abacbde2cd22c5373a9 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Tue, 14 Aug 2018 14:23:31 +0200 dial error: add newline dbe80c7d9f93688585348abacbde2cd22c5373a9 2018-08-13T10:42:29Z 2018-08-13T10:45:51Z Add Linux compile support. Christoph Lohmann 20h@r-36.net commit dbe80c7d9f93688585348abacbde2cd22c5373a9 parent c203aa551a7deb54746100ba0532d5e6d234ad85 Author: Christoph Lohmann <20h@r-36.net> Date: Mon, 13 Aug 2018 12:42:29 +0200 Add Linux compile support. c203aa551a7deb54746100ba0532d5e6d234ad85 2018-08-12T17:28:28Z 2018-08-12T17:28:28Z for uri use a simple pointer: no copy is needed Hiltjo Posthuma hiltjo@codemadness.org commit c203aa551a7deb54746100ba0532d5e6d234ad85 parent 68d669677f9f159d33c5b8f369f716edd2dd91e0 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 12 Aug 2018 19:28:28 +0200 for uri use a simple pointer: no copy is needed 68d669677f9f159d33c5b8f369f716edd2dd91e0 2018-08-12T17:28:09Z 2018-08-12T17:28:09Z fix fallthrough, search items were displayed incorrectly Hiltjo Posthuma hiltjo@codemadness.org commit 68d669677f9f159d33c5b8f369f716edd2dd91e0 parent a3dbec3aff240cf18792ac54e40d7ea04dae4d07 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 12 Aug 2018 19:28:09 +0200 fix fallthrough, search items were displayed incorrectly a3dbec3aff240cf18792ac54e40d7ea04dae4d07 2018-08-12T17:27:16Z 2018-08-12T17:27:16Z use dprintf and reorder so a fflush is not needed, saves some lines Hiltjo Posthuma hiltjo@codemadness.org commit a3dbec3aff240cf18792ac54e40d7ea04dae4d07 parent 09feebbc6b6947493acdadf0afca1a61da517c40 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 12 Aug 2018 19:27:16 +0200 use dprintf and reorder so a fflush is not needed, saves some lines + minor cleanup 09feebbc6b6947493acdadf0afca1a61da517c40 2018-08-12T17:26:29Z 2018-08-12T17:26:29Z for normal info text prefix with type (spaces) so it aligns properly Hiltjo Posthuma hiltjo@codemadness.org commit 09feebbc6b6947493acdadf0afca1a61da517c40 parent f3ee251cc87fed2ff5ef4f8b9679c03cad71a5f6 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 12 Aug 2018 19:26:29 +0200 for normal info text prefix with type (spaces) so it aligns properly f3ee251cc87fed2ff5ef4f8b9679c03cad71a5f6 2018-08-12T17:10:23Z 2018-08-12T17:10:23Z simplify item type handling, make shorter uris Hiltjo Posthuma hiltjo@codemadness.org commit f3ee251cc87fed2ff5ef4f8b9679c03cad71a5f6 parent 536c656498826de19a9aa266f59831df7ef74b5f Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 12 Aug 2018 19:10:23 +0200 simplify item type handling, make shorter uris make shorter uri by removing gopher:// and the port if it is "70". 536c656498826de19a9aa266f59831df7ef74b5f 2018-08-12T16:30:20Z 2018-08-12T16:41:41Z fix include for time Josuah Demangeon mail@josuah.net commit 536c656498826de19a9aa266f59831df7ef74b5f parent 40a6ccd6cfb99c2849dff4501a54bc7752b63620 Author: Josuah Demangeon <mail@josuah.net> Date: Sun, 12 Aug 2018 18:30:20 +0200 fix include for time musl-libc seems to use <sys/time.h> instead of <time.h> $ find /usr/include -name '*.ch' -exec grep '^struct timeval' {} + ... /usr/include/sys/time.h: struct timeval it_interval; /usr/include/sys/time.h: struct timeval it_value; ... OpenBSD has this in <sys/time.h>: #ifndef _TIMEVAL_DECLARED #define _TIMEVAL_DECLARED /* * Structure returned by gettimeofday(2) system call, * and used in other calls. */ struct timeval { time_t tv_sec; /* seconds */ suseconds_t tv_usec; /* and microseconds */ }; #endif 40a6ccd6cfb99c2849dff4501a54bc7752b63620 2018-08-12T16:14:09Z 2018-08-12T16:14:09Z initial repo Hiltjo Posthuma hiltjo@codemadness.org commit 40a6ccd6cfb99c2849dff4501a54bc7752b63620 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 12 Aug 2018 18:14:09 +0200 initial repo