[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [pluggable-transports/snowflake] 02/02: proxy: Correctly handle argument parsing error



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@xxxxxxxxxxxx>
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)}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits