Skip to content

Commit 924460e

Browse files
authored
Merge pull request #580 from RUB-NDS/nimrod_SNI
Fixes for SNI from nimia
2 parents bb2b5a5 + 36887c2 commit 924460e

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,5 @@ Utils/.settings/org.eclipse.core.resources.prefs
4242
Utils/.settings/org.eclipse.jdt.core.prefs
4343
.project
4444
test.sh
45+
.settings/
46+
.classpath

TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/connection/OutboundConnection.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public OutboundConnection(String alias, Integer port, String hostname) {
4040
public OutboundConnection(OutboundConnection other) {
4141
this.alias = other.alias;
4242
this.hostname = other.hostname;
43+
this.ip = other.ip;
4344
this.port = other.port;
4445
this.proxyDataHostname = other.proxyDataHostname;
4546
this.proxyDataPort = other.proxyDataPort;

Transport/src/main/java/de/rub/nds/tlsattacker/transport/tcp/ClientTcpTransportHandler.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ public ClientTcpTransportHandler(Connection connection) {
3434
this.connectionTimeout = 60000;
3535
}
3636

37+
public ClientTcpTransportHandler(Connection connection, long timeout) {
38+
this(connection);
39+
this.connectionTimeout = timeout;
40+
}
41+
3742
public ClientTcpTransportHandler(long timeout, String hostname, int port) {
3843
super(timeout, ConnectionEndType.CLIENT);
3944
this.hostname = hostname;

0 commit comments

Comments
 (0)