Fix DF for hysteria

This commit is contained in:
世界 2022-10-18 17:27:41 +08:00
parent 68e286499d
commit fc533cd38d
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -45,6 +45,7 @@ type Hysteria struct {
}
func NewHysteria(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.HysteriaOutboundOptions) (*Hysteria, error) {
options.UDPFragmentDefault = true
if options.TLS == nil || !options.TLS.Enabled {
return nil, C.ErrTLSRequired
}