浏览代码

Don't show icann address for tahoelafs

Bob Mottram 8 年前
父节点
当前提交
b5185be6cc
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 1
    0
      src/freedombone-app-tahoelafs
  2. 3
    0
      src/freedombone-controlpanel

+ 1
- 0
src/freedombone-app-tahoelafs 查看文件

@@ -34,6 +34,7 @@ VARIANTS='full full-vim cloud'
34 34
 
35 35
 IN_DEFAULT_INSTALL=0
36 36
 SHOW_ON_ABOUT=1
37
+SHOW_ICANN_ADDRESS_ON_ABOUT=0
37 38
 
38 39
 TAHOELAFS_REPO="https://github.com/tahoe-lafs/tahoe-lafs"
39 40
 TAHOELAFS_COMMIT='bb782b0331a60de438136a593bba18338d8d866b'

+ 3
- 0
src/freedombone-controlpanel 查看文件

@@ -384,6 +384,9 @@ function show_domains {
384 384
 
385 385
         if [ ${#app_name} -gt 0 ]; then
386 386
             icann_address=$(get_app_icann_address "$app_name")
387
+            if grep -q "SHOW_ICANN_ADDRESS_ON_ABOUT=0" /usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-${app_name}; then
388
+                icann_address='-'
389
+            fi
387 390
             onion_address=$(get_app_onion_address "$app_name")
388 391
             if [ ${#onion_address} -eq 0 ]; then
389 392
                 onion_address="-"