(url stun.URI)
| 42 | } |
| 43 | |
| 44 | func effectiveURLProtoType(url stun.URI) stun.ProtoType { |
| 45 | if url.Proto != stun.ProtoTypeUnknown { |
| 46 | return url.Proto |
| 47 | } |
| 48 | |
| 49 | switch url.Scheme { |
| 50 | case stun.SchemeTypeSTUN, stun.SchemeTypeTURN: |
| 51 | return stun.ProtoTypeUDP |
| 52 | case stun.SchemeTypeSTUNS, stun.SchemeTypeTURNS: |
| 53 | return stun.ProtoTypeTCP |
| 54 | default: |
| 55 | return stun.ProtoTypeUnknown |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | func urlSupportsSrflxGathering(url stun.URI) bool { |
| 60 | if effectiveURLProtoType(url) != stun.ProtoTypeUDP { |
no outgoing calls
searching dependent graphs…