github.com/xraypb/Xray-core@v1.8.1/infra/conf/loopback.go (about)

     1  package conf
     2  
     3  import (
     4  	"github.com/golang/protobuf/proto"
     5  	"github.com/xraypb/Xray-core/proxy/loopback"
     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  }