Xray-core/infra/conf/loopback.go

15 lines
292 B
Go
Raw Permalink Normal View History

2021-09-19 15:28:38 +03:00
package conf
import (
"github.com/xtls/xray-core/proxy/loopback"
"google.golang.org/protobuf/proto"
2021-09-19 15:28:38 +03:00
)
type LoopbackConfig struct {
InboundTag string `json:"inboundTag"`
}
func (l LoopbackConfig) Build() (proto.Message, error) {
return &loopback.Config{InboundTag: l.InboundTag}, nil
}