From f0f51d22a17f1138486b2ee8bb6017f6a8e120f1 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 3 Mar 2021 12:56:14 -0600 Subject: Allow for customizing default gemini & gopher ports --- bollux | 3 ++- bollux.conf.5 | 13 ++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/bollux b/bollux index c910cd5..a4e9584 100755 --- a/bollux +++ b/bollux @@ -233,8 +233,9 @@ bollux_config() { ## behavior : "${BOLLUX_TIMEOUT:=30}" # connection timeout : "${BOLLUX_MAXREDIR:=5}" # max redirects - : "${BOLLUX_PORT:=1965}" # port number : "${BOLLUX_PROTO:=gemini}" # default protocol + : "${BOLLUX_GEMINI_PORT:=1965}" # default port for gemini + : "${BOLLUX_GOPHER_PORT:=70}" # default port for gopher : "${BOLLUX_URL:=}" # start url : "${BOLLUX_BYEMSG:=See You Space Cowboy ...}" # bye message ## lesskeys diff --git a/bollux.conf.5 b/bollux.conf.5 index 9c66ced..b22cd58 100644 --- a/bollux.conf.5 +++ b/bollux.conf.5 @@ -1,5 +1,5 @@ \" -*- nroff -*- -.TH bollux.conf 5 0.4.0 +.TH bollux.conf 5 0.4.1 .SH NAME .B bollux.conf \- configuration file for @@ -240,12 +240,19 @@ It's possible they could be tweaked to make work differently, like browsing gopher instead of gemini, but that capability has not been tested. .TP -.BR BOLLUX_PORT +.BR BOLLUX_GEMINI_PORT valid values are port numbers (1-65535); default is '1965'. .br The port .BR bollux (1) -tries to connect to on the server. +tries to connect to on gemini servers. +.TP +.BR BOLLUX_GOPHER_PORT +valid values are port numbers (1-65535); default is '70'. +.br +The port +.BR bollux (1) +tries to connect to on gopher servers. .TP .BR BOLLUX_PROTO valid values are protocol names (strings); default is 'gemini'. -- cgit 1.4.1-21-gabe81