Skip to content

bug: /ip returns origin IP with port, but should exclude the port #211

@gowy222

Description

@gowy222

Hi ,

I noticed an issue with the /ip endpoint. According to the description, it should return the origin IP. However, the current response includes the port number as well. For example:

{
  "origin": "23.XX.XXX.9:47782"
}

Expected behavior:
The IP address should not include the port. It should return just the IP, like:

{
  "origin": "23.XX.XXX.9"
}

Including the port may lead to inconsistencies or issues for systems expecting a pure IP address.

Steps to Reproduce:

Make a request to /ip

Observe that the returned origin field includes the port number

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions