Browse Source

Reserved ports for proxy

Nginx spawns webservices on different ports instead of the default ones (80 and 443)
to let them be free to be used by other programs.
We are going to use 50000 and 60000 (removed from the random range)

Change-Id: I19208f961c41b0e9833dd4b402123fa5ac63f62a
tags/0.4.7
Fabio Verboso 7 months ago
parent
commit
4eb2314533
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      iotronic/conductor/endpoints.py

+ 1
- 1
iotronic/conductor/endpoints.py View File

@@ -50,7 +50,7 @@ def get_best_agent(ctx):
50 50
 
51 51
 
52 52
 def random_public_port():
53
-    return random.randint(50000, 60000)
53
+    return random.randint(50001, 59999)
54 54
 
55 55
 
56 56
 def manage_result(res, wamp_rpc_call, board_uuid):

Loading…
Cancel
Save