This is an automated email from the git hooks/post-receive script.
cohosh pushed a commit to branch main in repository pluggable-transports/snowflake.
commit 986fc8269a804f5b7f223b71ae1c28f718bbf8f1 Author: KokaKiwi kokakiwi+tor@kokakiwi.net AuthorDate: Wed Oct 12 16:51:39 2022 +0200
proxy: Correctly handle argument parsing error --- proxy/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/proxy/main.go b/proxy/main.go index e9bc0b2..38c07b0 100644 --- a/proxy/main.go +++ b/proxy/main.go @@ -44,12 +44,12 @@ func main() { if len(ephemeralPortsRangeParts) == 2 { ephemeralMinPort, err := strconv.ParseUint(ephemeralPortsRangeParts[0], 10, 16) if err != nil { - fmt.Printf("Error parsing range port: %v", err) + log.Fatal(err) }
ephemeralMaxPort, err := strconv.ParseUint(ephemeralPortsRangeParts[1], 10, 16) if err != nil { - fmt.Printf("Error parsing range port: %v", err) + log.Fatal(err) }
ephemeralPortsRange = []uint16{uint16(ephemeralMinPort), uint16(ephemeralMaxPort)}