Browse Source

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

pull/258/head
Vladislav Fursov 2 years ago
committed by GitHub
parent
commit
3cbbf3068a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      transport/socks5/socks5.go

2
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))
}
}

Loading…
Cancel
Save