mirror of https://github.com/XTLS/Xray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
292 B
15 lines
292 B
3 years ago
|
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
|
||
|
}
|