Skip to content

Commit 84ed6b9

Browse files
committed
Copying IP in the copy constructor of OutboundConnection.
Removed annoying stack traces printing.
1 parent c820bcd commit 84ed6b9

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

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/Connection.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ public String getIp() {
5858

5959
public void setIp(String ip) {
6060
System.out.println("Setting IP: " + ip);
61-
new Exception().printStackTrace(System.out);
6261
this.ip = ip;
6362
}
6463

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ public ClientTcpTransportHandler(long timeout, String hostname, int port) {
4444
super(timeout, ConnectionEndType.CLIENT);
4545
this.hostname = hostname;
4646
System.out.println("Ctor 2: Got hostname: " + this.hostname);
47-
new Exception().printStackTrace(System.out);
4847
this.port = port;
4948
this.connectionTimeout = timeout;
5049
}

0 commit comments

Comments
 (0)