Prevents reuse of external port numbers

This commit is contained in:
benbierens 2023-11-13 16:05:41 +01:00
parent b82c74865e
commit 4192952a37
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ namespace KubernetesWorkflow.Recipe
public class RecipeComponentFactory public class RecipeComponentFactory
{ {
private NumberSource internalNumberSource = new NumberSource(8080); private NumberSource internalNumberSource = new NumberSource(8080);
private NumberSource externalNumberSource = new NumberSource(30000); private static NumberSource externalNumberSource = new NumberSource(30000);
public Port CreatePort(int number, string tag, PortProtocol protocol) public Port CreatePort(int number, string tag, PortProtocol protocol)
{ {