github.com/moqsien/xraycore@v1.8.5/infra/conf/loopback.go (about) 1 package conf 2 3 import ( 4 "github.com/moqsien/xraycore/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 }