mirror of
				https://github.com/v2fly/v2ray-core.git
				synced 2025-10-31 17:59:15 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			143 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			143 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package testing
 | |
| 
 | |
| import (
 | |
| 	"sync/atomic"
 | |
| )
 | |
| 
 | |
| var (
 | |
| 	port = int32(30000)
 | |
| )
 | |
| 
 | |
| func PickPort() uint16 {
 | |
| 	return uint16(atomic.AddInt32(&port, 1))
 | |
| }
 | 
