mirror of https://github.com/XTLS/Xray-core
				
				
				
			
		
			
				
	
	
		
			15 lines
		
	
	
		
			292 B
		
	
	
	
		
			Go
		
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			292 B
		
	
	
	
		
			Go
		
	
	
package conf
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/xtls/xray-core/proxy/loopback"
 | 
						|
	"google.golang.org/protobuf/proto"
 | 
						|
)
 | 
						|
 | 
						|
type LoopbackConfig struct {
 | 
						|
	InboundTag string `json:"inboundTag"`
 | 
						|
}
 | 
						|
 | 
						|
func (l LoopbackConfig) Build() (proto.Message, error) {
 | 
						|
	return &loopback.Config{InboundTag: l.InboundTag}, nil
 | 
						|
}
 |