From 3cbbf3068a5c29680371d78a2179839f70f5e393 Mon Sep 17 00:00:00 2001 From: Vladislav Fursov Date: Wed, 17 May 2023 06:06:56 +0400 Subject: [PATCH] Fix(socks5): panic with unassigned reply code (#255) --- transport/socks5/socks5.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/socks5/socks5.go b/transport/socks5/socks5.go index b2bf676..0bd7876 100644 --- a/transport/socks5/socks5.go +++ b/transport/socks5/socks5.go @@ -72,7 +72,7 @@ func (r Reply) String() string { case 0x08: return "address type not supported" default: - return fmt.Sprintf("unassigned <%#02x>", r) + return fmt.Sprintf("unassigned <%#02x>", uint8(r)) } }