Skip to content

Commit

Permalink
Fix type conversion, closes #29
Browse files Browse the repository at this point in the history
  • Loading branch information
luker983 committed Oct 20, 2023
1 parent c6736ec commit 866677b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transport/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 866677b

Please sign in to comment.