File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ class Node
121121 virtual void resetSettings () = 0;
122122
123123 // ! Map port.
124- virtual void mapPort (bool use_pcp ) = 0;
124+ virtual void mapPort (bool enable ) = 0;
125125
126126 // ! Get proxy.
127127 virtual bool getProxy (Network net, Proxy& proxy_info) = 0;
Original file line number Diff line number Diff line change @@ -166,9 +166,9 @@ static void MapPortProtoSetEnabled(bool enabled)
166166 g_mapport_enabled = enabled;
167167}
168168
169- void StartMapPort (bool use_pcp )
169+ void StartMapPort (bool enable )
170170{
171- MapPortProtoSetEnabled (use_pcp );
171+ MapPortProtoSetEnabled (enable );
172172 DispatchMapPort ();
173173}
174174
Original file line number Diff line number Diff line change 77
88static constexpr bool DEFAULT_NATPMP = false;
99
10- void StartMapPort (bool use_pcp );
10+ void StartMapPort (bool enable );
1111void InterruptMapPort ();
1212void StopMapPort ();
1313
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ class NodeImpl : public Node
187187 });
188188 args ().WriteSettingsFile ();
189189 }
190- void mapPort (bool use_pcp ) override { StartMapPort (use_pcp ); }
190+ void mapPort (bool enable ) override { StartMapPort (enable ); }
191191 bool getProxy (Network net, Proxy& proxy_info) override { return GetProxy (net, proxy_info); }
192192 size_t getNodeCount (ConnectionDirection flags) override
193193 {
You can’t perform that action at this time.
0 commit comments