File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/main/java/se/uu/it/dtlsfuzzer/components/sul/core Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ public void pre() {
148
148
config .getDefaultServerConnection ().setPort (port );
149
149
} else {
150
150
String realHost = ((TlsSulServerConfig ) sulConfig ).getHost ();
151
- var split = realHost .split (":" );
151
+ var split = realHost .split (":" , - 1 );
152
152
int port = Integer .parseInt (split [1 ]);
153
153
config .getDefaultClientConnection ().setPort (port );
154
154
}
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public SulConfig cloneWithThreadId(int threadId) {
45
45
clone .processDir = getProcessDir ();
46
46
// host
47
47
String originalHost = this .getHost ();
48
- String [] hostParts = originalHost .split (":" );
48
+ String [] hostParts = originalHost .split (":" , - 1 );
49
49
String hostname = hostParts [0 ];
50
50
int originalPort = Integer .parseInt (hostParts [1 ]);
51
51
int newPort = originalPort + threadId ;
You can’t perform that action at this time.
0 commit comments