Skip to content

Commit

Permalink
1.18.6:add stun servers
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjia404 committed Jul 5, 2023
1 parent c3774f3 commit 6dccbb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ dependencies {
testImplementation 'org.robolectric:shadows-multidex:4.4'
}

def canonicalVersionCode = 356
def canonicalVersionName = "1.18.5"
def canonicalVersionCode = 357
def canonicalVersionName = "1.18.6"

def postFixSize = 10
def abiPostFix = ['armeabi-v7a' : 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,8 @@ class PeerConnectionWrapper(private val context: Context,
private var isInitiator = false

private fun initPeerConnection() {
val random = SecureRandom().asKotlinRandom()
val iceServers = listOf("freyr","fenrir","frigg","angus","hereford","holstein", "brahman").shuffled(random).take(2).map { sub ->
PeerConnection.IceServer.builder("turn:$sub.getsession.org")
.setUsername("session202111")
.setPassword("053c268164bc7bd7")
val iceServers = listOf("stun:stun.qq.com:3478","stun:stun.newrocktech.com:3478","stun:stun.miwifi.com:3478","stun:stun.syncthing.net:3478","stun:stun1.l.google.com:19302","stun:stun.ethtweet.io:3478").map { sub ->
PeerConnection.IceServer.builder(sub)
.createIceServer()
}

Expand Down

0 comments on commit 6dccbb7

Please sign in to comment.