| 295 | } |
| 296 | |
| 297 | static void MapPortProtoSetEnabled(MapPortProtoFlag proto, bool enabled) |
| 298 | { |
| 299 | if (enabled) { |
| 300 | g_mapport_enabled_protos |= proto; |
| 301 | } else { |
| 302 | g_mapport_enabled_protos &= ~proto; |
| 303 | } |
| 304 | } |
| 305 | |
| 306 | void StartMapPort(bool use_upnp, bool use_natpmp) |
| 307 | { |