Skip to content

Commit

Permalink
Update to use client-provided public IP address when available (#12)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel McKnight <[email protected]>
  • Loading branch information
NeonDaniel and NeonDaniel authored Jan 26, 2024
1 parent 4fa6a30 commit 164e898
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 164e898

Please sign in to comment.