Bob Mottram 8 年之前
父節點
當前提交
3c38b86fd6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/freedombone-utils-onion

+ 1
- 1
src/freedombone-utils-onion 查看文件

@@ -472,7 +472,7 @@ function tor_create_bridge_relay {
472 472
     sed -i 's|BridgeRelay.*|BridgeRelay 1|g' /etc/tor/torrc
473 473
     sed -i 's|#ServerTransportPlugin.*|ServerTransportPlugin obfs4 exec /usr/bin/obfs4proxy|g' /etc/tor/torrc
474 474
     sed -i 's|ServerTransportPlugin.*|ServerTransportPlugin obfs4 exec /usr/bin/obfs4proxy|g' /etc/tor/torrc
475
-    if ! grep "ExtORPort auto" /etc/tor/torrc; then
475
+    if ! grep 'ExtORPort ' /etc/tor/torrc; then
476 476
         echo 'ExtORPort auto' >> /etc/tor/torrc
477 477
     else
478 478
         sed -i 's|#ExtORPort auto|ExtORPort auto|g' /etc/tor/torrc