Skip to content

Commit

Permalink
Update to use client-provided public IP address when available
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Jan 26, 2024
1 parent 4fa6a30 commit 94eea7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neon_hana/app/routers/assist.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ async def get_tts(request: TTSRequest) -> TTSResponse:
@assist_route.post("/get_response")
async def get_response(skill_request: SkillRequest,
request: Request) -> SkillResponse:
skill_request.node_data.networking.public_ip = request.client.host
if not skill_request.node_data.networking.public_ip:
skill_request.node_data.networking.public_ip = request.client.host
return mq_connector.get_response(**dict(skill_request))

0 comments on commit 94eea7c

Please sign in to comment.