network port
parent
f58be2f83d
commit
651dc8481a
20
t_netaddr.go
20
t_netaddr.go
|
@ -17,25 +17,7 @@ func (arb T) NetAddr() net.Addr {
|
|||
}
|
||||
}
|
||||
|
||||
var port uint16
|
||||
{
|
||||
port = uint16(arb.randomness.Intn(65536))
|
||||
|
||||
if 0 == arb.randomness.Intn(5) {
|
||||
port = uint16(arb.randomness.Intn(1024))
|
||||
}
|
||||
|
||||
if 0 == arb.randomness.Intn(4) {
|
||||
port = uint16(arb.randomness.Intn(100))
|
||||
}
|
||||
|
||||
if 0 == arb.randomness.Intn(30) {
|
||||
port = 80
|
||||
}
|
||||
if 0 == arb.randomness.Intn(29) {
|
||||
port = 79
|
||||
}
|
||||
}
|
||||
var port uint16 = arb.NetPort()
|
||||
|
||||
var value string
|
||||
func(){
|
||||
|
|
Loading…
Reference in New Issue