File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/java/se/uu/it/dtlsfuzzer/components/sul/core/config Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -57,15 +57,15 @@ public SulConfig cloneWithThreadId(int threadId) {
57
57
if (clone .command .contains ("-starterAddress localhost:" )) {
58
58
int adapterPort = this .sulAdapterConfig .getAdapterPort ();
59
59
int newAdapterPort = adapterPort + threadId ;
60
- clone .command = clone .command .replace ("-starterAddress localhost:" +adapterPort , "-starterAddress localhost:" +( newAdapterPort ) );
60
+ clone .command = clone .command .replace ("-starterAddress localhost:" +adapterPort , "-starterAddress localhost:" +newAdapterPort );
61
61
clone .sulAdapterConfig = new SulAdapterConfigStandard (newAdapterPort , this .sulAdapterConfig .getAdapterAddress ());
62
62
}
63
63
64
64
// JSSE-12-0-2 related
65
65
if (clone .command .contains ("-threadStarterIpPort localhost:" )) {
66
66
int adapterPort = this .sulAdapterConfig .getAdapterPort ();
67
67
int newAdapterPort = adapterPort + threadId ;
68
- clone .command = clone .command .replace ("-threadStarterIpPort localhost:" +adapterPort , "-threadStarterIpPort localhost:" +( newAdapterPort ) );
68
+ clone .command = clone .command .replace ("-threadStarterIpPort localhost:" +adapterPort , "-threadStarterIpPort localhost:" +newAdapterPort );
69
69
clone .sulAdapterConfig = new SulAdapterConfigStandard (newAdapterPort , this .sulAdapterConfig .getAdapterAddress ());
70
70
}
71
71
Original file line number Diff line number Diff line change @@ -67,15 +67,15 @@ public SulConfig cloneWithThreadId(int threadId) {
67
67
if (clone .command .contains ("-starterAddress localhost:" )) {
68
68
int adapterPort = this .sulAdapterConfig .getAdapterPort ();
69
69
int newAdapterPort = adapterPort + threadId ;
70
- clone .command = clone .command .replace ("-starterAddress localhost:" +adapterPort , "-starterAddress localhost:" +( newAdapterPort ) );
70
+ clone .command = clone .command .replace ("-starterAddress localhost:" +adapterPort , "-starterAddress localhost:" +newAdapterPort );
71
71
clone .sulAdapterConfig = new SulAdapterConfigStandard (newAdapterPort , this .sulAdapterConfig .getAdapterAddress ());
72
72
}
73
73
74
74
// JSSE-12-0-2 related
75
75
if (clone .command .contains ("-threadStarterIpPort localhost:" )) {
76
76
int adapterPort = this .sulAdapterConfig .getAdapterPort ();
77
77
int newAdapterPort = adapterPort + threadId ;
78
- clone .command = clone .command .replace ("-threadStarterIpPort localhost:" +adapterPort , "-threadStarterIpPort localhost:" +( newAdapterPort ) );
78
+ clone .command = clone .command .replace ("-threadStarterIpPort localhost:" +adapterPort , "-threadStarterIpPort localhost:" +newAdapterPort );
79
79
clone .sulAdapterConfig = new SulAdapterConfigStandard (newAdapterPort , this .sulAdapterConfig .getAdapterAddress ());
80
80
}
81
81
You can’t perform that action at this time.
0 commit comments