Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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('
|
| 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}"
|