Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

injek berubah ke stunnel ketika autorekonek #22

Open
kripul opened this issue Jul 25, 2021 · 0 comments
Open

injek berubah ke stunnel ketika autorekonek #22

kripul opened this issue Jul 25, 2021 · 0 comments

Comments

@kripul
Copy link

kripul commented Jul 25, 2021

saya pakai v 3.1
stunnel ane uncek.
Waktu pertama konek sudah benar dan menggunakan injek python tapi setiap koneksi modem hilang dan xderm melakukan rekonek, injek selalu berubah ke mode stunnel.
saya lihat di baris 1193 kayaknya ada yang salah

injj=$(cat /www/xderm/config/stun 2>/dev/null|awk "NR==1")
 if [ -f $injj ]; then
echo yes > /www/xderm/config/stun;injj=yes
 fi
  if [ $injj != "no" ]; then
injek;echo "[stunnel]" >> screenlog.0
  else
echo "[python]" >> screenlog.0

harusnya

 if [ ! -f /www/xderm/config/stun ]; then
echo yes > /www/xderm/config/stun;injj=yes
 fi
injj=$(cat /www/xderm/config/stun 2>/dev/null|awk "NR==1")
  if [ $injj != "no" ]; then
injek;echo "[stunnel]" >> screenlog.0
  else
echo "[python]" >> screenlog.0

UPDATE : setelah saya baca ulang sepertinya bukan script di atas tapi script autorekonek yang salah ngambil data dari logr

BTW, lognya kayaknya enakan pakai format JAM:MENIT dibanding MENIT:DETIK agar kita tahu jam berapa waktu rekoneknya.
Terimakasih!

SOLUSI :
Saya tambahin saya
cat /www/xderm/screenlog.0 > /www/xderm/log/logr.txt
dibawah baris 1307

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant