fudii0921 commited on
Commit
eba7c50
·
verified ·
1 Parent(s): 6a095e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -113,7 +113,7 @@ def get_client_ip(request: gr.Request) -> tuple[str, gr.update, gr.update]:
113
  # ALLOWED_IPSはグローバル変数として既に定義されている
114
  if check_ip in ALLOWED_IPS:
115
  # --- IPが許可されている場合 ---
116
- print('checkip:',check_ip)
117
 
118
  if forwarded_for:
119
  display_msg = f"✅ アクセス許可: IPアドレスが許可リストに含まれています。\nクライアントIP (X-Forwarded-For): {check_ip}\n直接ホストIP: {client_ip}"
 
113
  # ALLOWED_IPSはグローバル変数として既に定義されている
114
  if check_ip in ALLOWED_IPS:
115
  # --- IPが許可されている場合 ---
116
+ print('checkips:',check_ip,ALLOWED_IPS)
117
 
118
  if forwarded_for:
119
  display_msg = f"✅ アクセス許可: IPアドレスが許可リストに含まれています。\nクライアントIP (X-Forwarded-For): {check_ip}\n直接ホストIP: {client_ip}"