mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2024-12-30 02:37:01 +00:00
Fix(socks5): panic with unassigned reply code (#255)
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user