Opera8 commited on
Commit
ec64009
·
verified ·
1 Parent(s): d3c687c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -3,8 +3,6 @@ import subprocess
3
  import threading
4
  from http.server import SimpleHTTPRequestHandler, HTTPServer
5
 
6
- # 1. ساخت یک صفحه HTML الکی برای رد گم کنی
7
- # این صفحه وقتی کسی آدرس اسپیس را در مرورگر بزند نمایش داده می‌شود
8
  html_content = """
9
  <!DOCTYPE html>
10
  <html>
@@ -83,11 +81,11 @@ def run_fake_website():
83
  print(f"Fake AI Site running on port {port}")
84
  httpd.serve_forever()
85
 
86
- # 4. اجرای سایت الکی در پس‌زمینه
87
  thread = threading.Thread(target=run_fake_website)
88
  thread.daemon = True
89
  thread.start()
90
 
91
- # 5. اجرای Xray (فیلترشکن اصلی)
92
  print("Starting Xray Core...")
93
  subprocess.run(["./xray", "-c", "config.json"])
 
3
  import threading
4
  from http.server import SimpleHTTPRequestHandler, HTTPServer
5
 
 
 
6
  html_content = """
7
  <!DOCTYPE html>
8
  <html>
 
81
  print(f"Fake AI Site running on port {port}")
82
  httpd.serve_forever()
83
 
84
+ # 4. اجرای سای در پس‌زمینه
85
  thread = threading.Thread(target=run_fake_website)
86
  thread.daemon = True
87
  thread.start()
88
 
89
+ # 5. اجرای
90
  print("Starting Xray Core...")
91
  subprocess.run(["./xray", "-c", "config.json"])