1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-30 14:05:26 -05:00

simplify test

This commit is contained in:
v2ray
2015-12-06 20:38:01 +01:00
parent 092217182a
commit c54c0218e0
3 changed files with 12 additions and 10 deletions

View File

@@ -11,5 +11,5 @@ var (
)
func PickPort() v2net.Port {
return v2net.Port(uint16(atomic.AddInt32(&port, 1)))
return v2net.Port(atomic.AddInt32(&port, 1))
}