From 83151f88146676ea6a0e60d52521a0bc342af746 Mon Sep 17 00:00:00 2001 From: Chris K Date: Fri, 29 Mar 2019 13:45:43 -0700 Subject: server4 test: pick ports > 32k --- dhcpv4/server4/server_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dhcpv4/server4') 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 -- cgit v1.2.3