diff options
author | fcolin | 2009-10-15 11:11:05 +0000 |
---|---|---|
committer | fcolin | 2009-10-15 11:11:05 +0000 |
commit | bcc90a35663fa97baa1b75a156e518b88f6a946a (patch) | |
tree | 689e68678f112cb5b3a89561aa8905e00c24be39 /Ivy/Ivy.cxx | |
parent | 473bf59297a9c8010fb35f505c872024ae3d259d (diff) | |
download | ivy-cplusplus-bcc90a35663fa97baa1b75a156e518b88f6a946a.zip ivy-cplusplus-bcc90a35663fa97baa1b75a156e518b88f6a946a.tar.gz ivy-cplusplus-bcc90a35663fa97baa1b75a156e518b88f6a946a.tar.bz2 ivy-cplusplus-bcc90a35663fa97baa1b75a156e518b88f6a946a.tar.xz |
remplacement adresse de broadcast local par 127.0.0.1 car le 127.255.255.255 ne passe pas sur MacOS
Diffstat (limited to 'Ivy/Ivy.cxx')
-rw-r--r-- | Ivy/Ivy.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Ivy/Ivy.cxx b/Ivy/Ivy.cxx index fe05e7d..95035d1 100644 --- a/Ivy/Ivy.cxx +++ b/Ivy/Ivy.cxx @@ -12,7 +12,7 @@ #include "IvyBinding.h"
#include "intervalRegexp.h"
-#define DEFAULT_ADDR "127.255.255.255"
+#define DEFAULT_ADDR "127.0.0.1"
#define SEPARATOR ":"
#define DEFAULT_PORT "2010"
#define DEFAULT_DOMAIN DEFAULT_ADDR/**/SEPARATOR/**/DEFAULT_PORT
@@ -120,8 +120,10 @@ const char * Ivy::GetDomain(const char *domainlist) size_t sep_index = domain.rfind( ':' );
if ( sep_index == -1 )
{
- domain = DEFAULT_DOMAIN;
- TRACE(" Missing ':' in domain list using default domain %s\n", domain );
+ //domain = DEFAULT_DOMAIN;
+ domain.append( SEPARATOR );
+ domain.append( DEFAULT_PORT );
+ TRACE(" Missing ':' in domain list using default port %s\n", domain );
}
if ( sep_index == 0 )
{
|