Skip to content

Commit

Permalink
fix stick issue
Browse files Browse the repository at this point in the history
  • Loading branch information
XndroidDev committed Apr 6, 2019
1 parent 73e5559 commit e1eba12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/net/xndroid/fqrouter/FqrouterManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public void run() {
+ "sh " + sXndroidFile + "/python/bin"
+ (Build.VERSION.SDK_INT > 17 ? "/python-launcher.sh " : "/python-launcher-nopie.sh ")
+ sXndroidFile + "/fqrouter/manager/main.py run "
+ ((AppModel.sDebug || AppModel.sLastFail) ? (" > " + sXndroidFile + "/log/fqrouter-output.log 2>&1 \n") : "\n")
+ ((AppModel.sDebug || AppModel.sLastFail) ? (" > " + sXndroidFile + "/log/fqrouter-output.log 2>&1 \n") : " >/dev/null 2>&1\n")
+ "exit\n";
}else {
cmd = "cd " + sXndroidFile + " \n"
Expand All @@ -283,7 +283,7 @@ public void run() {
+ (Build.VERSION.SDK_INT > 17 ? "/python-launcher.sh " : "/python-launcher-nopie.sh ")
+ sXndroidFile + "/fqrouter/manager/vpn.py "
+ (Build.VERSION.SDK_INT >= 20 ? " 26.26.26.1 26.26.26.2 " : " 10.25.1.1 10.25.1.2 ")
+ ((AppModel.sDebug || AppModel.sLastFail) ? (" > " + sXndroidFile + "/log/fqrouter-output.log 2>&1 \n") : "\n")
+ ((AppModel.sDebug || AppModel.sLastFail) ? (" > " + sXndroidFile + "/log/fqrouter-output.log 2>&1 \n") : " >/dev/null 2>&1\n")
+ "exit\n";
}
LogUtils.i("try to start fqrouter, cmd: " + cmd);
Expand Down
2 changes: 1 addition & 1 deletion fqrouter/manager/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def handle_exit(environ, start_response):


def setup_logging():
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG if os.getenv('DEBUG') else (logging.CRITICAL + 1), format='%(asctime)s %(levelname)s %(message)s')
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG if os.getenv('DEBUG') else logging.INFO, format='%(asctime)s %(levelname)s %(message)s')
log_level = logging.DEBUG if os.getenv('DEBUG') else logging.INFO
handler = logging.handlers.RotatingFileHandler(
MANAGER_LOG_FILE, maxBytes=1024 * 512, backupCount=0)
Expand Down

0 comments on commit e1eba12

Please sign in to comment.