chore: restful api display fast-open for tuic and hysteria

This commit is contained in:
metacubex
2022-11-28 19:52:55 +08:00
committed by wwqgtxx
parent 9ea09b2b94
commit 8c0fbb3665
5 changed files with 13 additions and 3 deletions

View File

@ -30,12 +30,10 @@ import (
)
const (
mbpsToBps = 125000
minSpeedBPS = 16384
mbpsToBps = 125000
DefaultStreamReceiveWindow = 15728640 // 15 MB/s
DefaultConnectionReceiveWindow = 67108864 // 64 MB/s
DefaultMaxIncomingStreams = 1024
DefaultALPN = "hysteria"
DefaultProtocol = "udp"
@ -258,6 +256,7 @@ func NewHysteria(option HysteriaOption) (*Hysteria, error) {
addr: addr,
tp: C.Hysteria,
udp: true,
tfo: option.FastOpen,
iface: option.Interface,
rmark: option.RoutingMark,
prefer: C.NewDNSPrefer(option.IPVersion),