termux-connecting 1.1.40 → 1.1.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,11 +11,15 @@ title() { echo -e "\n${CYAN}━━━ $1 ━━━${NC}\n"; }
11
11
 
12
12
  AUTO=false
13
13
  CHECK=false
14
+ DEBUG=false
14
15
  for arg in "$@"; do
15
16
  [ "$arg" = "-y" ] && AUTO=true
16
17
  [ "$arg" = "--check" ] || [ "$arg" = "--status" ] && CHECK=true
18
+ [ "$arg" = "--debug" ] && DEBUG=true
17
19
  done
18
20
 
21
+ $DEBUG && set -x
22
+
19
23
  # ─── Mode: Check/Status ───
20
24
  if $CHECK; then
21
25
  echo ""
@@ -205,9 +209,9 @@ if command -v termux-wake-lock >/dev/null; then
205
209
  termux-wake-lock 2>/dev/null && info "Wake lock aktif — koneksi tetap terjaga saat layar mati"
206
210
  fi
207
211
 
208
- # notification — agar Android tidak kill Termux
212
+ # notification — agar Android tidak kill Termux (timeout 3 detik)
209
213
  if command -v termux-notification >/dev/null; then
210
- termux-notification -t "Termux Connecting" -c "SSH server berjalan — ${USERNAME}@${IP}:8022" --id sshd-keepalive --ongoing 2>/dev/null
214
+ timeout 3 termux-notification -t "Termux Connecting" -c "SSH server berjalan — port 8022" --id sshd-keepalive --ongoing 2>/dev/null || true
211
215
  fi
212
216
 
213
217
  # battery optimization — buka setelan langsung
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "termux-connecting",
3
- "version": "1.1.40",
3
+ "version": "1.1.41",
4
4
  "description": "CLI setup Termux + koneksi SSH dari PC/Mac dengan Telegram alert",
5
5
  "bin": {
6
6
  "termux-connecting": "bin/termux-connecting",