summary refs log tree commit diff stats
path: root/src/common/inbound.c
diff options
context:
space:
mode:
authorStepan Broz <stepan@izitra.cz>2019-05-21 16:02:30 +0200
committerPatrick <tingping@tingping.se>2019-05-28 14:33:39 -0700
commited1d5061a46a62401285e43894cb96989b2cbc60 (patch)
tree2d99f07af54beeb2db25de0fbf862cfdb4fe1552 /src/common/inbound.c
parent468ce821fe7dcbc9396d75a137e4cfee0483bd11 (diff)
Make dcc_ip being a per-server value.
Moved dcc_ip from prefs to sess->server.
Diffstat (limited to 'src/common/inbound.c')
-rw-r--r--src/common/inbound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/inbound.c b/src/common/inbound.c
index fb8eb511..9c77b231 100644
--- a/src/common/inbound.c
+++ b/src/common/inbound.c
@@ -1420,7 +1420,7 @@ inbound_foundip (session *sess, char *ip, const message_tags_data *tags_data)
 	HostAddr = gethostbyname (ip);
 	if (HostAddr)
 	{
-		prefs.dcc_ip = ((struct in_addr *) HostAddr->h_addr)->s_addr;
+		sess->server->dcc_ip = ((struct in_addr *) HostAddr->h_addr)->s_addr;
 		EMIT_SIGNAL_TIMESTAMP (XP_TE_FOUNDIP, sess->server->server_session,
 									  inet_ntoa (*((struct in_addr *) HostAddr->h_addr)),
 									  NULL, NULL, NULL, 0, tags_data->timestamp);