diff options
| author | Pieter Wuille <[email protected]> | 2012-05-13 01:26:14 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-05-13 01:26:14 +0200 |
| commit | 5a3cb32e5942adbfb5af90808013c1dde3c03fcf (patch) | |
| tree | 91e93cba67ad9a600f18589b2ac25f2b80bc4064 /src/net.cpp | |
| parent | Keep local service information per address (diff) | |
| download | discoin-5a3cb32e5942adbfb5af90808013c1dde3c03fcf.tar.xz discoin-5a3cb32e5942adbfb5af90808013c1dde3c03fcf.zip | |
Take -port into account when resolving -bind's
Diffstat (limited to 'src/net.cpp')
| -rw-r--r-- | src/net.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/net.cpp b/src/net.cpp index 53b69d276..951595e68 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -231,11 +231,9 @@ bool AddLocal(const CService& addr, int nScore) return true; } -bool AddLocal(const CNetAddr& addr, int nScore, int port) +bool AddLocal(const CNetAddr &addr, int nScore) { - if (port == -1) - port = GetListenPort(); - return AddLocal(CService(addr, port), nScore); + return AddLocal(CService(addr, GetListenPort()), nScore); } /** Make a particular network entirely off-limits (no automatic connects to it) */ |