withStunNatDetection method

Future<void> withStunNatDetection(
  1. bool enabled, {
  2. List<({String host, int port})>? servers,
})

Configures STUN NAT type detection. See enableStunNatDetection.

Implementation

Future<void> withStunNatDetection(bool enabled, {List<({String host, int port})>? servers}) async {
  enableStunNatDetection = enabled;
  if (servers != null) stunServers = servers;
}