github.com/sagernet/sing-box@v1.9.0-rc.20/inbound/hysteria_stub.go (about)

     1  //go:build !with_quic
     2  
     3  package inbound
     4  
     5  import (
     6  	"context"
     7  
     8  	"github.com/sagernet/sing-box/adapter"
     9  	C "github.com/sagernet/sing-box/constant"
    10  	"github.com/sagernet/sing-box/log"
    11  	"github.com/sagernet/sing-box/option"
    12  )
    13  
    14  func NewHysteria(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.HysteriaInboundOptions) (adapter.Inbound, error) {
    15  	return nil, C.ErrQUICNotIncluded
    16  }
    17  
    18  func NewHysteria2(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.Hysteria2InboundOptions) (adapter.Inbound, error) {
    19  	return nil, C.ErrQUICNotIncluded
    20  }