github.com/xtls/xray-core@v1.8.12-0.20240518155711-3168d27b0bdb/infra/conf/loopback.go (about)

     1  package conf
     2  
     3  import (
     4  	"github.com/xtls/xray-core/proxy/loopback"
     5  	"google.golang.org/protobuf/proto"
     6  )
     7  
     8  type LoopbackConfig struct {
     9  	InboundTag string `json:"inboundTag"`
    10  }
    11  
    12  func (l LoopbackConfig) Build() (proto.Message, error) {
    13  	return &loopback.Config{InboundTag: l.InboundTag}, nil
    14  }