Skip to content

Commit

Permalink
切换域名到.net
Browse files Browse the repository at this point in the history
  • Loading branch information
imndx committed Mar 31, 2021
1 parent 6412b07 commit c1c4762
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Binary file modified avenginekit/avenginekit.aar
Binary file not shown.
6 changes: 3 additions & 3 deletions chat/src/main/java/cn/wildfire/chat/app/AppService.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class AppService implements AppServiceProvider {
* <br>
* <br>
*/
public static String APP_SERVER_ADDRESS/*请仔细阅读上面的注释*/ = "http://wildfirechat.cn:8888";
public static String APP_SERVER_ADDRESS/*请仔细阅读上面的注释*/ = "http://wildfirechat.net:8888";
// public static String APP_SERVER_ADDRESS/*请仔细阅读上面的注释*/ = "https://app.wildfirechat.net";

private AppService() {
Expand Down Expand Up @@ -455,8 +455,8 @@ public static void validateConfig(Context context) {
|| (!APP_SERVER_ADDRESS.startsWith("http") && !APP_SERVER_ADDRESS.startsWith("https"))
|| Config.IM_SERVER_HOST.equals("127.0.0.1")
|| APP_SERVER_ADDRESS.contains("127.0.0.1")
|| (!Config.IM_SERVER_HOST.contains("wildfirechat.cn") && APP_SERVER_ADDRESS.contains("wildfirechat.cn"))
|| (Config.IM_SERVER_HOST.contains("wildfirechat.cn") && !APP_SERVER_ADDRESS.contains("wildfirechat.cn"))
|| (!Config.IM_SERVER_HOST.contains("wildfirechat.net") && APP_SERVER_ADDRESS.contains("wildfirechat.net"))
|| (Config.IM_SERVER_HOST.contains("wildfirechat.net") && !APP_SERVER_ADDRESS.contains("wildfirechat.net"))
) {
Toast.makeText(context, "配置错误,请检查配置,应用即将关闭...", Toast.LENGTH_LONG).show();
new Handler().postDelayed(() -> {
Expand Down
4 changes: 2 additions & 2 deletions uikit/src/main/java/cn/wildfire/chat/kit/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ public class Config {
* <br>
* <br>
*/
public static String IM_SERVER_HOST /*请仔细阅读上面的注释*/ = "wildfirechat.cn";
public static String IM_SERVER_HOST /*请仔细阅读上面的注释*/ = "wildfirechat.net";

// 注意APP_SERVER_ADDRESS已从kit中移除,移动到了AppService.java中
//public static String APP_SERVER_ADDRESS = "http://wildfirechat.cn:8888";
//public static String APP_SERVER_ADDRESS = "http://wildfirechat.net:8888";

/**
* 音视频通话所用的turn server配置,详情参考 https://docs.wildfirechat.net/webrtc/
Expand Down

0 comments on commit c1c4762

Please sign in to comment.