Implemented an option to turn off TLS support

This commit is contained in:
Luxferre
2024-10-08 11:55:44 +03:00
parent f558616122
commit bf5c6b1db8
3 changed files with 35 additions and 4 deletions
+8 -1
View File
@@ -3,6 +3,7 @@
BFG (stands for Back/Forward/Go) is a free (absolutely), open-source, cross-platform, single-script, self-contained GUI client for a number of "small web" protocols like Gopher, Finger, Nex, Spartan and Gemini.
BFG is written in under 1000 SLOC of Tcl 8.6 and depends upon Tcllib, Tk (obviously) and TclTLS.
The TclTLS dependency can be turned off in the configuration file at the expense of losing Gemini and Gopher-over-TLS support
If you found any bugs, feel free to submit an issue into this repo!
@@ -33,6 +34,7 @@ The following features are already (fully or partially) supported in BFG.
* Dynamic window title based on the current URL
* In-page text search
* Ini-based customization of the current Ttk theme, content fonts and colors
* Non-TLS mode for systems without TclTLS support
## Non-supported features
@@ -108,7 +110,7 @@ The following mouse bindings are currently supported:
BFG ships with a `bfg.ini` file that holds your configuration values and bookmarks.
The main configuration sections are:
* `[net]`: network-related configs, currently only has "timeout" parameter
* `[net]`: network-related configs, currently has "timeout" parameter and an optional "tls" parameter
* `[widget]`: general UI widget appearance (ttkTheme, font (button font), entryfont, statusfont)
* `[style.general]`: general content area appearance (textfont, monofont\*, foreground color, background color)
* `[style.link.normal]`: normal link colors (foreground, background)
@@ -177,6 +179,11 @@ The [Scroll protocol](gemini://scrollprotocol.us.to/) is essentially advertised
Due to a purely technical limitation of the Gopher protocol (or rather the Gophermap format) itself, we cannot determine if a particular Gophermap entry points to a plain Gopher or a Gopher-over-TLS resource. Hence, only the links belonging to the same host/port pair that was already opened with a `gophers://` link are displayed as `gophers://` links. Everything else needs to be adjusted manually for now. Sorry for the inconvenience.
### My system (or Tclkit) doesn't have TclTLS available, can I still use BFG for plaintext protocols?
Sure! Just supply `tls=off` (or `0`, or `none`) in the `[net]` section of the `bfg.ini` file.
You'll lose the ability to browse Gemini and Gopher-over-TLS resources but other protocols will be fully functional.
## Credits
Created by Luxferre in 2024, released into the public domain.