mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-23 07:23:01 +00:00
16 lines
293 B
Go
16 lines
293 B
Go
|
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
|
||
|
}
|