Index: remoting/protocol/transport_config.h |
diff --git a/remoting/protocol/transport_config.h b/remoting/protocol/transport_config.h |
index 7599bf65813e3123bd37a17669c1a45e48650eb9..8b1089ab729e5bf6dac13ce930c7a6206aa76c87 100644 |
--- a/remoting/protocol/transport_config.h |
+++ b/remoting/protocol/transport_config.h |
@@ -14,7 +14,21 @@ struct TransportConfig { |
TransportConfig(); |
~TransportConfig(); |
- bool nat_traversal; |
+ enum NatTraversalMode { |
+ // Don't use STUN or relay servers. Accept incoming P2P connection |
+ // attempts, but don't initiate any. This ensures that the peer is |
+ // on the same network. Note that connection will always fail if |
+ // both ends use this mode. |
+ NAT_TRAVERSAL_DISABLED, |
+ |
+ // Don't use STUN or relay servers but make outgoing connections. |
+ NAT_TRAVERSAL_OUTGOING, |
+ |
+ // Active NAT traversal using STUN and relay servers. |
+ NAT_TRAVERSAL_ENABLED, |
+ }; |
+ |
+ NatTraversalMode nat_traversal_mode; |
std::string stun_server; |
std::string relay_server; |
std::string relay_token; |