docs: improve ephemeral-ports-range description

Clarify that the default range is wide.
This commit is contained in:
WofWca 2024-12-13 16:09:22 +04:00
parent 6e7c177157
commit cb32d008ca
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ Usage of ./proxy:
disable the exposing mechanism for stats using logs disable the exposing mechanism for stats using logs
-ephemeral-ports-range range -ephemeral-ports-range range
Set the range of ports used for client connections (format:"<min>:<max>"). Set the range of ports used for client connections (format:"<min>:<max>").
If omitted, the ports will be chosen automatically. If omitted, the ports will be chosen automatically from a wide range.
-keep-local-addresses -keep-local-addresses
keep local LAN address ICE candidates. keep local LAN address ICE candidates.
This is usually pointless because Snowflake clients don't usually reside on the same local network as the proxy. This is usually pointless because Snowflake clients don't usually reside on the same local network as the proxy.

View file

@ -44,7 +44,7 @@ func main() {
metricsAddress := flag.String("metrics-address", "localhost", "set listen `address` for metrics service") metricsAddress := flag.String("metrics-address", "localhost", "set listen `address` for metrics service")
metricsPort := flag.Int("metrics-port", 9999, "set port for the metrics service") metricsPort := flag.Int("metrics-port", 9999, "set port for the metrics service")
verboseLogging := flag.Bool("verbose", false, "increase log verbosity") verboseLogging := flag.Bool("verbose", false, "increase log verbosity")
ephemeralPortsRangeFlag := flag.String("ephemeral-ports-range", "", "Set the `range` of ports used for client connections (format:\"<min>:<max>\").\nIf omitted, the ports will be chosen automatically.") ephemeralPortsRangeFlag := flag.String("ephemeral-ports-range", "", "Set the `range` of ports used for client connections (format:\"<min>:<max>\").\nIf omitted, the ports will be chosen automatically from a wide range.")
versionFlag := flag.Bool("version", false, "display version info to stderr and quit") versionFlag := flag.Bool("version", false, "display version info to stderr and quit")
var ephemeralPortsRange []uint16 = []uint16{0, 0} var ephemeralPortsRange []uint16 = []uint16{0, 0}