我在FastAPI 上有一个API,当他请求我的页面时,我需要获取客户端的真实IP 地址。 ... ip = request.client.host print(ip) return {'status': 1, 'message': 'ok'}
確定! 回上一頁