mirror of
https://github.com/apernet/hysteria.git
synced 2025-04-02 03:57:38 +03:00
chore: swap the const value of server hello reply
by setting StatusTCPOnly == 1, when a new version client connect to an old version server, the client will treat the server as udp disabled and will not submit a udp request or open a udp control stream. this make the upgrade much more smoothly even if we don't change the protocolVersion.
This commit is contained in:
parent
955a8a7470
commit
45fbdec453
1 changed files with 2 additions and 2 deletions
|
@ -27,8 +27,8 @@ type clientHello struct {
|
|||
|
||||
const (
|
||||
serverHelloStatusFailed = uint8(0)
|
||||
serverHelloStatusOK = uint8(1)
|
||||
serverHelloStatusTCPOnly = uint8(2)
|
||||
serverHelloStatusTCPOnly = uint8(1)
|
||||
serverHelloStatusOK = uint8(2)
|
||||
)
|
||||
|
||||
type serverHello struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue