diff options
author | Chris K <chrisko@google.com> | 2019-03-29 13:45:43 -0700 |
---|---|---|
committer | Chris K <c@chrisko.ch> | 2019-03-29 16:36:05 -0700 |
commit | 83151f88146676ea6a0e60d52521a0bc342af746 (patch) | |
tree | ba83fd721509161173b70d3f87eb932a63c643a3 /dhcpv4/server4 | |
parent | ece7f80857548e7f82ff7cff9204e3a48b444373 (diff) |
server4 test: pick ports > 32k
Diffstat (limited to 'dhcpv4/server4')
-rw-r--r-- | dhcpv4/server4/server_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/server4/server_test.go b/dhcpv4/server4/server_test.go index a6895d2..68d0cc3 100644 --- a/dhcpv4/server4/server_test.go +++ b/dhcpv4/server4/server_test.go @@ -26,7 +26,7 @@ func randPort() int { // can't use port 0 with raw sockets, so until we implement // a non-raw-sockets client for non-static ports, we have to // deal with this "randomness" - return 1024 + rand.Intn(65536-1024) + return 32*1024 + rand.Intn(65536-32*1024) } // DORAHandler is a server handler suitable for DORA transactions |