feat: add loopback outbound

Co-authored-by: Shelikhoo <xiaokangwang@outlook.com>
This commit is contained in:
AkinoKaede
2021-03-17 23:09:33 +08:00
committed by 秋のかえで
parent 9dec65e367
commit 98050aaf02
7 changed files with 315 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
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
}