Skip to content

ipv6 ip of user doesn't go into MySQL database #1782

@vophamthanhan

Description

@vophamthanhan

error while trying to store ipv6 address for authenticated user into a MySQL database.

[AuthMe] Error during SQL operation: [MysqlDataTruncation]: Data truncation: Data too long for column 'ip' at row 1

for example, a user may join with an ipv6 address of [d82e:b902:18db:2bf3:9f59:cfda:75af:8584], compared to an example ipv4 address of 54.175.226.192, the address is different in size and formatting.

Versions:
AuthMeReloaded v5.4.0 (build: 1877)
mysql Ver 14.14 Distrib 5.7.25, for Linux (x86_64) using EditLine wrapper

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good first issueMarks issues that should be easy to fix/close, useful for new contributors.Priority: criticalMarks issues that should be fixed/closed as soon as possible.Type: bug

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions