Skip to content

Commit 977bd40

Browse files
committed
Daemon - choose startinng port from a wider range of options
Also ensure we don't accidentally pick a port num out of range.
1 parent 6034bfc commit 977bd40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/server/ruby/bin/daemon.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ class PortDiscovery
843843
def initialize(safe_exit)
844844
@safe_exit = safe_exit
845845
# choose random port to try first
846-
@last_free_port = 49152 + rand(2000)
846+
@last_free_port = 29152 + rand(10000).to_i
847847

848848
@ports = [
849849
# each entry is the name of a port to determine.

0 commit comments

Comments
 (0)