diff options
author | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-22 09:13:58 +0000 |
---|---|---|
committer | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-22 09:13:58 +0000 |
commit | 097d544fa11ef60116a3f9c4e89b63f111b06738 (patch) | |
tree | 60fa2a530f2a0333e447e4f2e658dd6c660390fb /src | |
parent | b219bc963c87f335cd9c0edd9114982b8e02f4aa (diff) | |
download | hercules-097d544fa11ef60116a3f9c4e89b63f111b06738.tar.gz hercules-097d544fa11ef60116a3f9c4e89b63f111b06738.tar.bz2 hercules-097d544fa11ef60116a3f9c4e89b63f111b06738.tar.xz hercules-097d544fa11ef60116a3f9c4e89b63f111b06738.zip |
Typos resolving login-DNS instead of char-DNS -.-
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7291 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/char/char.c | 14 | ||||
-rw-r--r-- | src/char_sql/char.c | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/src/char/char.c b/src/char/char.c index 9ee40416e..0d863e46c 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -3989,19 +3989,19 @@ int char_config_read(const char *cfgName) { }
} else if (strcmpi(w1, "login_ip") == 0) {
login_ip = resolve_hostbyname(w2, NULL, login_ip_str);
- if (login_ip) {
- if(char_server_dns)
- aFree(char_server_dns);
- char_server_dns = (char *)aCalloc(strlen(w2)+1, 1);
- strcpy(char_server_dns, w2);
+ if (login_ip)
ShowStatus("Login server IP address : %s -> %s\n", w2, login_ip_str);
- }
} else if (strcmpi(w1, "login_port") == 0) {
login_port = atoi(w2);
} else if (strcmpi(w1, "char_ip") == 0) {
char_ip = resolve_hostbyname(w2, NULL, char_ip_str);
- if (char_ip)
+ if (char_ip){
+ if(char_server_dns)
+ aFree(char_server_dns);
+ char_server_dns = (char *)aCalloc(strlen(w2)+1, 1);
+ strcpy(char_server_dns, w2);
ShowStatus("Character server IP address : %s -> %s\n", w2, char_ip_str);
+ }
} else if (strcmpi(w1, "bind_ip") == 0) {
bind_ip = resolve_hostbyname(w2, NULL, bind_ip_str);
if (bind_ip)
diff --git a/src/char_sql/char.c b/src/char_sql/char.c index e97535454..77b0119e2 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -4098,20 +4098,20 @@ int char_config_read(const char *cfgName) { } else if (strcmpi(w1, "login_ip") == 0) {
unsigned char ip_str[4];
login_ip = resolve_hostbyname(w2, ip_str, login_ip_str);
- if (login_ip) {
- if(char_server_dns)
- aFree(char_server_dns);
- char_server_dns = (char *)aCalloc(strlen(w2)+1, 1);
-
+ if (login_ip)
ShowStatus("Login server IP address : %s -> %s\n", w2, login_ip_str);
- }
} else if (strcmpi(w1, "login_port") == 0) {
login_port=atoi(w2);
} else if (strcmpi(w1, "char_ip") == 0) {
unsigned char ip_str[4];
char_ip = resolve_hostbyname(w2, ip_str, char_ip_str);
- if (char_ip)
+ if (char_ip){
+ if(char_server_dns)
+ aFree(char_server_dns);
+ char_server_dns = (char *)aCalloc(strlen(w2)+1, 1);
+ strcpy(char_server_dns, w2);
ShowStatus("Character server IP address : %s -> %s\n", w2, char_ip_str);
+ }
} else if (strcmpi(w1, "bind_ip") == 0) {
unsigned char ip_str[4];
bind_ip = resolve_hostbyname(w2, ip_str, bind_ip_str);
|