From 866677b259a5044e096e5f016c87e86990c2ae6a Mon Sep 17 00:00:00 2001 From: Luke Rindels Date: Fri, 20 Oct 2023 09:48:41 -0600 Subject: [PATCH] Fix type conversion, closes #29 --- src/transport/transport.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transport/transport.go b/src/transport/transport.go index ed4b49f..62df163 100644 --- a/src/transport/transport.go +++ b/src/transport/transport.go @@ -271,7 +271,7 @@ func ForwardDynamic(s *stack.Stack, l *net.Listener, localAddr tcpip.FullAddress return nil, err } - dport, err := strconv.Atoi(port) + dport, err := strconv.ParseUint(port, 10, 16) if err != nil { return nil, err }