Add loopback outound

This commit is contained in:
世界 committed 2021-10-22 17:58:37 +08:00
1 parent 5c366db847
commit 707efd6d12
9 files changed
+310 -1

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
package conf
import (
"github.com/golang/protobuf/proto"
"github.com/xtls/xray-core/proxy/loopback"
)
type LoopbackConfig struct {
InboundTag string `json:"inboundTag"`
}
func (l LoopbackConfig) Build() (proto.Message, error) {
return &loopback.Config{InboundTag: l.InboundTag}, nil
}