Quietly refresh VPN/Tor support for new Termux sessions. This is called from bash.bashrc. It keeps the saved proxy exports current and restarts Tor if Tor was enabled but the process is not listening anymore. It does not print anything because it runs during shell startup/prompt repair.
()
| 7546 | print('[+] DedSec OS server running at: ' + url) |
| 7547 | if not browser_opened: |
| 7548 | print('[+] Open this URL in your browser: ' + browser_url) |
| 7549 | print('[+] Termux remains locked until login in the web interface or a menu style change unlocks it.') |
| 7550 | for _ in range(60 * 60 * 8): |
| 7551 | if os.path.exists(DEDSEC_OS_UNLOCK_FLAG_PATH): |
| 7552 | try: |
| 7553 | os.remove(DEDSEC_OS_UNLOCK_FLAG_PATH) |
| 7554 | except Exception: |
| 7555 | pass |
| 7556 | break |
| 7557 | if process.poll() is not None: |
| 7558 | break |
| 7559 | time.sleep(1) |
| 7560 | return url |
| 7561 | |
| 7562 | |
| 7563 |
no test coverage detected