diff options
author | Damien Miller <djm@mindrot.org> | 2000-01-19 14:36:49 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-01-19 14:36:49 +1100 |
commit | 7d80e3484b5a41249bee4d43b4c9a58d6ebe90a6 (patch) | |
tree | 80f2ae37acdadd0c5b409e63b454083e5367c6ab /sshd.c | |
parent | eaf9994f7e5fdddb7ded0cd9d757921ed8a9dc67 (diff) |
- Linux/glibc-2.1.2 takes a *long* time to look up names for AF_UNSPEC
addresses using getaddrinfo(). Added a configure switch to make the
default lookup mode AF_INET
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -11,7 +11,7 @@ | |||
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include "includes.h" | 13 | #include "includes.h" |
14 | RCSID("$Id: sshd.c,v 1.50 2000/01/14 04:45:52 damien Exp $"); | 14 | RCSID("$Id: sshd.c,v 1.51 2000/01/19 03:36:50 damien Exp $"); |
15 | 15 | ||
16 | #include "xmalloc.h" | 16 | #include "xmalloc.h" |
17 | #include "rsa.h" | 17 | #include "rsa.h" |
@@ -49,7 +49,11 @@ char *config_file_name = SERVER_CONFIG_FILE; | |||
49 | * Flag indicating whether IPv4 or IPv6. This can be set on the command line. | 49 | * Flag indicating whether IPv4 or IPv6. This can be set on the command line. |
50 | * Default value is AF_UNSPEC means both IPv4 and IPv6. | 50 | * Default value is AF_UNSPEC means both IPv4 and IPv6. |
51 | */ | 51 | */ |
52 | #ifdef IPV4_DEFAULT | ||
53 | int IPv4or6 = AF_INET; | ||
54 | #else | ||
52 | int IPv4or6 = AF_UNSPEC; | 55 | int IPv4or6 = AF_UNSPEC; |
56 | #endif | ||
53 | 57 | ||
54 | /* | 58 | /* |
55 | * Debug mode flag. This can be set on the command line. If debug | 59 | * Debug mode flag. This can be set on the command line. If debug |