Skip to content

Commit

Permalink
Fix connect automatic test for kfreebsd
Browse files Browse the repository at this point in the history
  • Loading branch information
twasilczyk committed Jun 10, 2014
1 parent a644c3e commit fc002e5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/automatic/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,15 @@
#include <gnutls/gnutls.h>
#endif

/* must be different from INADDR_LOOPBACK=127.0.0.1 */
#define HOST_LOCAL "127.0.0.2"
#ifndef _WIN32
/* should not be different from 127.0.0.1, because this is the only address
* from 127.0.0.0/8 pool that is guaranted to be configured as a loopback */
# define HOST_LOCAL "127.0.0.1"
#else
/* must be different from INADDR_LOOPBACK=127.0.0.1, because this one is used
* for win32-related hacks */
# define HOST_LOCAL "127.0.0.2"
#endif
#define HOST_PROXY "proxy.example.org"

#if 0
Expand Down

0 comments on commit fc002e5

Please sign in to comment.