Fix(socks5): panic with unassigned reply code (#255)

This commit is contained in:
Vladislav Fursov
2023-05-17 10:06:56 +08:00
committed by GitHub
parent 8da083b28e
commit 3cbbf3068a
+1 -1
View File
@@ -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))
}
}