termux-connecting 1.1.26 → 1.1.27

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.
@@ -186,8 +186,9 @@ if [ -n "$WIFI_SSID" ]; then
186
186
  fi
187
187
  echo ""
188
188
 
189
+ CONNECTION_OK=false
190
+
189
191
  if [ -z "$IP" ]; then
190
- warn "IP tidak terdeteksi"
191
192
  echo " Pastikan HP terhubung ke WiFi, bukan data seluler."
192
193
  echo ""
193
194
  echo " Langkah:"
@@ -204,6 +205,7 @@ elif is_cgnat "$IP"; then
204
205
  echo " 4. Jalankan ulang: termux-connecting -y"
205
206
  echo " 5. Atau cek IP manual: ip a | grep wlan"
206
207
  elif is_wifi "$IP"; then
208
+ CONNECTION_OK=true
207
209
  echo " Di PC/Mac, jalankan perintah berikut:"
208
210
  echo " npm i -g termux-connecting"
209
211
  echo " termux-connect-pc"
@@ -238,8 +240,8 @@ echo "----------------------------------------"
238
240
  info "Setup selesai!"
239
241
  echo ""
240
242
 
241
- # ─── Opsional: Cek Permission ───
242
- if [ "$AUTO" = "false" ] && confirm "Cek permission & fitur tambahan (WiFi SSID, storage, auto-start)" "n"; then
243
+ # ─── Opsional: Cek Permission (hanya jika koneksi OK) ───
244
+ if [ "$CONNECTION_OK" = "true" ] && [ "$AUTO" = "false" ] && confirm "Cek permission & fitur tambahan (WiFi SSID, storage, auto-start)" "n"; then
243
245
  echo ""
244
246
  title "Status Permission & Fitur"
245
247
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "termux-connecting",
3
- "version": "1.1.26",
3
+ "version": "1.1.27",
4
4
  "description": "CLI setup Termux + koneksi SSH dari PC/Mac dengan Telegram alert",
5
5
  "bin": {
6
6
  "termux-connecting": "bin/termux-connecting",