mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-24 21:10:35 +01:00
Merge bitcoin/bitcoin#31157: Cleanups to port mapping module post UPnP drop
70398ae05bmapport: make ProcessPCP void (Antoine Poinsot)9e6cba2988mapport: remove unnecessary 'g_mapport_enabled' (Antoine Poinsot)8fb45fcda0mapport: remove unnecessary 'g_mapport_current' variable (Antoine Poinsot)1b223cb19bmapport: merge DispatchMapPort into StartMapPort (Antoine Poinsot)9bd936fa34mapport: drop unnecessary function (Antoine Poinsot)2a6536cedamapport: rename 'use_pcp' to 'enable' (Antoine Poinsot)c4e82b854cmapport: make 'enabled' and 'current' bool (Antoine Poinsot) Pull request description: Followup to #31130, this does a couple cleanups to `src/mapport.*` to clarify the logic now that there is a single protocol option for port mapping. ACKs for top commit: laanwj: Code review ACK70398ae05bTheCharlatan: ACK70398ae05bTree-SHA512: d9a3ab4fcd59a7cf4872415c40cc7ac3a98dfc5aa25e195d4df880bb588bac286c30c3471e9d9499de379a75f45dcd0a82019eba3cb9f342004ae1482d0ba075
This commit is contained in:
@@ -121,7 +121,7 @@ public:
|
||||
virtual void resetSettings() = 0;
|
||||
|
||||
//! Map port.
|
||||
virtual void mapPort(bool use_pcp) = 0;
|
||||
virtual void mapPort(bool enable) = 0;
|
||||
|
||||
//! Get proxy.
|
||||
virtual bool getProxy(Network net, Proxy& proxy_info) = 0;
|
||||
|
||||
Reference in New Issue
Block a user