Skip to content

Commit

Permalink
Fix(socks5): panic with unassigned reply code (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostiam authored May 17, 2023
1 parent 8da083b commit 3cbbf30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport/socks5/socks5.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}

Expand Down

0 comments on commit 3cbbf30

Please sign in to comment.