maolili commited on
Commit
584b65a
·
verified ·
1 Parent(s): 15e46c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -53,7 +53,7 @@ def generate_links():
53
  "alpn": "h3"
54
  }
55
  params = {k: v for k, v in params.items() if v}
56
- link = f"hysteria://{host}:{port}?{urlencode(params)}#{quote(f'{loc} Hy1 {i}')}"
57
  links.append(link)
58
 
59
  # 处理 Hy2
@@ -74,7 +74,7 @@ def generate_links():
74
  }
75
  params = {k: v for k, v in params.items() if v}
76
  auth = cfg.get("auth", "")
77
- link = f"hysteria2://{auth}@{host}:{port}?{urlencode(params)}#{quote(f'{loc} Hy2 {i}')}"
78
  links.append(link)
79
 
80
  combined = "\n".join(links)
@@ -82,7 +82,7 @@ def generate_links():
82
 
83
  @app.get("/")
84
  def home():
85
- return {"status": "running", "endpoint": "/sub"}
86
 
87
  @app.get("/sub")
88
  def get_sub():
 
53
  "alpn": "h3"
54
  }
55
  params = {k: v for k, v in params.items() if v}
56
+ link = f"hysteria://{host}:{port}?{urlencode(params)}#{quote(f'{loc} Hy1_发财进行时 {i}')}"
57
  links.append(link)
58
 
59
  # 处理 Hy2
 
74
  }
75
  params = {k: v for k, v in params.items() if v}
76
  auth = cfg.get("auth", "")
77
+ link = f"hysteria2://{auth}@{host}:{port}?{urlencode(params)}#{quote(f'{loc} Hy2_好运充值成功 {i}')}"
78
  links.append(link)
79
 
80
  combined = "\n".join(links)
 
82
 
83
  @app.get("/")
84
  def home():
85
+ return {"我是小可爱~"}
86
 
87
  @app.get("/sub")
88
  def get_sub():