Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14864585
D10449.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
547 B
Subscribers
None
D10449.diff
View Options
diff --git a/src/net.cpp b/src/net.cpp
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -2515,11 +2515,6 @@
}
vhListenSocket.push_back(ListenSocket(hListenSocket, permissions));
-
- if (addrBind.IsRoutable() && fDiscover && (permissions & PF_NOBAN) == 0) {
- AddLocal(addrBind, LOCAL_BIND);
- }
-
return true;
}
@@ -2614,6 +2609,11 @@
}
return false;
}
+
+ if (addr.IsRoutable() && fDiscover && (permissions & PF_NOBAN) == 0) {
+ AddLocal(addr, LOCAL_BIND);
+ }
+
return true;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 20, 20:42 (14 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5865907
Default Alt Text
D10449.diff (547 B)
Attached To
D10449: net, refactor: Move AddLocal call one level up
Event Timeline
Log In to Comment