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
121
121
virtual void resetSettings () = 0;
122
122
123
123
// ! Map port.
124
- virtual void mapPort (bool use_pcp ) = 0;
124
+ virtual void mapPort (bool enable ) = 0;
125
125
126
126
// ! Get proxy.
127
127
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)
166
166
g_mapport_enabled = enabled;
167
167
}
168
168
169
- void StartMapPort (bool use_pcp )
169
+ void StartMapPort (bool enable )
170
170
{
171
- MapPortProtoSetEnabled (use_pcp );
171
+ MapPortProtoSetEnabled (enable );
172
172
DispatchMapPort ();
173
173
}
174
174
Original file line number Diff line number Diff line change 7
7
8
8
static constexpr bool DEFAULT_NATPMP = false;
9
9
10
- void StartMapPort (bool use_pcp );
10
+ void StartMapPort (bool enable );
11
11
void InterruptMapPort ();
12
12
void StopMapPort ();
13
13
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ class NodeImpl : public Node
187
187
});
188
188
args ().WriteSettingsFile ();
189
189
}
190
- void mapPort (bool use_pcp ) override { StartMapPort (use_pcp ); }
190
+ void mapPort (bool enable ) override { StartMapPort (enable ); }
191
191
bool getProxy (Network net, Proxy& proxy_info) override { return GetProxy (net, proxy_info); }
192
192
size_t getNodeCount (ConnectionDirection flags) override
193
193
{
You can’t perform that action at this time.
0 commit comments