mirror of
				https://github.com/v2fly/v2ray-core.git
				synced 2025-10-31 17:59:15 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			310 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			310 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package dokodemo
 | |
| 
 | |
| import (
 | |
| 	"github.com/v2fly/v2ray-core/v4/common/net"
 | |
| )
 | |
| 
 | |
| // GetPredefinedAddress returns the defined address from proto config. Null if address is not valid.
 | |
| func (v *Config) GetPredefinedAddress() net.Address {
 | |
| 	addr := v.Address.AsAddress()
 | |
| 	if addr == nil {
 | |
| 		return nil
 | |
| 	}
 | |
| 	return addr
 | |
| }
 | 
