зеркало из https://github.com/nextcloud/spreed.git
Merge pull request #88 from nextcloud/default_stun_server
Change default STUN server (#86)
This commit is contained in:
Коммит
7444b18997
|
@ -31,7 +31,7 @@ class Util {
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function getStunServer(IConfig $config) {
|
public static function getStunServer(IConfig $config) {
|
||||||
return $config->getAppValue('spreed', 'stun_server', 'stun.l.google.com:19302');
|
return $config->getAppValue('spreed', 'stun_server', 'stun.nextcloud.com:443');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -38,7 +38,7 @@ class UtilTest extends TestCase {
|
||||||
$config
|
$config
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
->method('getAppValue')
|
->method('getAppValue')
|
||||||
->with('spreed', 'stun_server', 'stun.l.google.com:19302')
|
->with('spreed', 'stun_server', 'stun.nextcloud.com:443')
|
||||||
->willReturn('88.198.160.129');
|
->willReturn('88.198.160.129');
|
||||||
|
|
||||||
$this->assertSame('88.198.160.129', $this->util->getStunServer($config));
|
$this->assertSame('88.198.160.129', $this->util->getStunServer($config));
|
||||||
|
|
Загрузка…
Ссылка в новой задаче