mirror of
https://github.com/samba-team/samba.git
synced 2025-12-12 12:23:50 +03:00
r9791: r11611@blu: tridge | 2005-08-30 21:48:22 +1000
recognise any case combination of 'localhost' as 127.0.0.1
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
9a1a7fb60e
commit
1d8dae5167
@@ -341,7 +341,7 @@ uint32_t interpret_addr(const char *str)
|
||||
}
|
||||
/* recognise 'localhost' as a special name. This fixes problems with
|
||||
some hosts that don't have localhost in /etc/hosts */
|
||||
if (strcmp(str,"localhost") == 0) {
|
||||
if (strcasecmp(str,"localhost") == 0) {
|
||||
str = "127.0.0.1";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user