mirror of https://github.com/v2ray/v2ray-core
				
				
				
			
		
			
				
	
	
		
			22 lines
		
	
	
		
			405 B
		
	
	
	
		
			Go
		
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			405 B
		
	
	
	
		
			Go
		
	
	
package transport
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/v2ray/v2ray-core/transport/internet/kcp"
 | 
						|
	"github.com/v2ray/v2ray-core/transport/internet/tcp"
 | 
						|
)
 | 
						|
 | 
						|
// Config for V2Ray transport layer.
 | 
						|
type Config struct {
 | 
						|
	tcpConfig *tcp.Config
 | 
						|
	kcpConfig kcp.Config
 | 
						|
}
 | 
						|
 | 
						|
// Apply applies this Config.
 | 
						|
func (this *Config) Apply() error {
 | 
						|
	if this.tcpConfig != nil {
 | 
						|
		this.tcpConfig.Apply()
 | 
						|
	}
 | 
						|
	this.kcpConfig.Apply()
 | 
						|
	return nil
 | 
						|
}
 |