From be9914f714feb61a465117ace324b3295dba5f30 Mon Sep 17 00:00:00 2001 From: Denton Gentry Date: Wed, 30 Aug 2023 08:18:49 -0700 Subject: [PATCH] cmd/sniproxy: move default debug-port away from 8080. Port 8080 is routinely used for HTTP services, make it easier to use --forwards=tcp/8080/... by moving the metrics port out of the way. Updates #1748 Signed-off-by: Denton Gentry --- cmd/sniproxy/sniproxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/sniproxy/sniproxy.go b/cmd/sniproxy/sniproxy.go index 1cbe6faaf..6a410418d 100644 --- a/cmd/sniproxy/sniproxy.go +++ b/cmd/sniproxy/sniproxy.go @@ -74,7 +74,7 @@ func main() { forwards = fs.String("forwards", "", "comma-separated list of ports to transparently forward, protocol/number/destination. For example, --forwards=tcp/22/github.com,tcp/5432/sql.example.com") wgPort = fs.Int("wg-listen-port", 0, "UDP port to listen on for WireGuard and peer-to-peer traffic; 0 means automatically select") promoteHTTPS = fs.Bool("promote-https", true, "promote HTTP to HTTPS") - debugPort = fs.Int("debug-port", 8080, "Listening port for debug/metrics endpoint") + debugPort = fs.Int("debug-port", 8893, "Listening port for debug/metrics endpoint") ) err := ff.Parse(fs, os.Args[1:], ff.WithEnvVarPrefix("TS_APPC"))