diff options
| author | Luke Dashjr <[email protected]> | 2012-06-08 16:43:06 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2012-08-23 21:01:01 +0000 |
| commit | 9655d73f49cd4da189ddb2ed708c26dc4cb3babe (patch) | |
| tree | e4bc13f995f1634b05094471aae5c352f61da576 /src | |
| parent | Bugfix: Make USE_UPNP=- work with makefile.{linux-mingw,mingw,osx} too (diff) | |
| download | discoin-9655d73f49cd4da189ddb2ed708c26dc4cb3babe.tar.xz discoin-9655d73f49cd4da189ddb2ed708c26dc4cb3babe.zip | |
Allow building with IPv6 support, but it disabled by default
Diffstat (limited to 'src')
| -rw-r--r-- | src/init.cpp | 6 | ||||
| -rw-r--r-- | src/makefile.linux-mingw | 2 | ||||
| -rw-r--r-- | src/makefile.mingw | 2 | ||||
| -rw-r--r-- | src/makefile.osx | 2 | ||||
| -rw-r--r-- | src/makefile.unix | 2 |
5 files changed, 10 insertions, 4 deletions
diff --git a/src/init.cpp b/src/init.cpp index 1a1e31c2f..25756c4e6 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -500,6 +500,12 @@ bool AppInit2() SetLimited(net); } } +#if defined(USE_IPV6) +#if ! USE_IPV6 + else + SetLimited(NET_IPV6); +#endif +#endif CService addrProxy; bool fProxy = false; diff --git a/src/makefile.linux-mingw b/src/makefile.linux-mingw index 059504b80..ad74aa6c9 100644 --- a/src/makefile.linux-mingw +++ b/src/makefile.linux-mingw @@ -45,7 +45,7 @@ ifneq (${USE_UPNP}, -) endif ifneq (${USE_IPV6}, -) - DEFS += -DUSE_IPV6 + DEFS += -DUSE_IPV6=$(USE_IPV6) endif LIBS += -l mingwthrd -l kernel32 -l user32 -l gdi32 -l comdlg32 -l winspool -l winmm -l shell32 -l comctl32 -l ole32 -l oleaut32 -l uuid -l rpcrt4 -l advapi32 -l ws2_32 -l mswsock -l shlwapi diff --git a/src/makefile.mingw b/src/makefile.mingw index 0bde965e1..6102dad61 100644 --- a/src/makefile.mingw +++ b/src/makefile.mingw @@ -41,7 +41,7 @@ ifneq (${USE_UPNP}, -) endif ifneq (${USE_IPV6}, -) - DEFS += -DUSE_IPV6 + DEFS += -DUSE_IPV6=$(USE_IPV6) endif LIBS += -l kernel32 -l user32 -l gdi32 -l comdlg32 -l winspool -l winmm -l shell32 -l comctl32 -l ole32 -l oleaut32 -l uuid -l rpcrt4 -l advapi32 -l ws2_32 -l mswsock -l shlwapi diff --git a/src/makefile.osx b/src/makefile.osx index d4109b941..de829b9eb 100644 --- a/src/makefile.osx +++ b/src/makefile.osx @@ -110,7 +110,7 @@ endif endif ifneq (${USE_IPV6}, -) - DEFS += -DUSE_IPV6 + DEFS += -DUSE_IPV6=$(USE_IPV6) endif all: bitcoind diff --git a/src/makefile.unix b/src/makefile.unix index 81337148d..ac42743d8 100644 --- a/src/makefile.unix +++ b/src/makefile.unix @@ -45,7 +45,7 @@ ifneq (${USE_UPNP}, -) endif ifneq (${USE_IPV6}, -) - DEFS += -DUSE_IPV6 + DEFS += -DUSE_IPV6=$(USE_IPV6) endif LIBS+= \ |