(svn r111) -Fix: converted all linebreaks to UNIX-linebreak (\n)
This commit is contained in:
16
network.c
16
network.c
@@ -1252,14 +1252,14 @@ void NetworkIPListInit() {
|
||||
gethostname(hostname,250);
|
||||
DEBUG(misc,2) ("[NET][IP] init for host %s", hostname);
|
||||
he=gethostbyname((char *) hostname);
|
||||
|
||||
if (he == NULL) {
|
||||
he = gethostbyname("localhost");
|
||||
}
|
||||
|
||||
if (he == NULL) {
|
||||
bcaddr = inet_addr("127.0.0.1");
|
||||
he = gethostbyaddr(inet_ntoa(*(struct in_addr *) &bcaddr), sizeof(bcaddr), AF_INET);
|
||||
|
||||
if (he == NULL) {
|
||||
he = gethostbyname("localhost");
|
||||
}
|
||||
|
||||
if (he == NULL) {
|
||||
bcaddr = inet_addr("127.0.0.1");
|
||||
he = gethostbyaddr(inet_ntoa(*(struct in_addr *) &bcaddr), sizeof(bcaddr), AF_INET);
|
||||
}
|
||||
|
||||
if (he == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user