From 0ca1cee5fc80aa1886e42565bda23c8cc76d8165 Mon Sep 17 00:00:00 2001 From: ultramage Date: Tue, 11 Dec 2007 20:11:44 +0000 Subject: [PATCH] Fixed a mistake in r11876 that prevented the login server from doing auth correctly due to an incorrect IP being used in the process. The whole thing should be reverted when there is a proper flag to identify interserver connections. git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11888 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/login/login.c | 2 +- src/login_sql/login.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/login/login.c b/src/login/login.c index a270a203a5..b3726bad22 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -1826,7 +1826,7 @@ int parse_login(int fd) return 0; } - ipl = login_config.login_ip; + ipl = session[fd]->client_addr; ip2str(ipl, ip); while( RFIFOREST(fd) >= 2 ) diff --git a/src/login_sql/login.c b/src/login_sql/login.c index 2037ef4636..299c068180 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -1226,7 +1226,7 @@ int parse_login(int fd) return 0; } - ipl = login_config.login_ip; + ipl = session[fd]->client_addr; ip2str(ipl, ip); while( RFIFOREST(fd) >= 2 )