Skip to content

Commit

Permalink
Change default STUN server (#86)
Browse files Browse the repository at this point in the history
We should use our own server by default, not the external one from Google.
  • Loading branch information
fancycode committed Nov 15, 2016
1 parent 8749975 commit a7db213
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
class Util {

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');
}

}
2 changes: 1 addition & 1 deletion tests/php/UtilTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function testGetStunServer() {
$config
->expects($this->once())
->method('getAppValue')
->with('spreed', 'stun_server', 'stun.l.google.com:19302')
->with('spreed', 'stun_server', 'stun.nextcloud.com:443')
->willReturn('88.198.160.129');

$this->assertSame('88.198.160.129', $this->util->getStunServer($config));
Expand Down

0 comments on commit a7db213

Please sign in to comment.