github.com/xraypb/xray-core@v1.6.6/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 }